mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 14:41:37 +03:00
37 lines
667 B
TypeScript
37 lines
667 B
TypeScript
import type { CapacitorConfig } from '@capacitor/cli';
|
|
import { KeyboardResize } from '@capacitor/keyboard';
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'app.affine.pro',
|
|
appName: 'AFFiNE',
|
|
webDir: 'dist',
|
|
ios: {
|
|
path: '.',
|
|
webContentsDebuggingEnabled: true,
|
|
},
|
|
server: {
|
|
// url: 'http://localhost:8080',
|
|
},
|
|
plugins: {
|
|
CapacitorCookies: {
|
|
enabled: true,
|
|
},
|
|
CapacitorHttp: {
|
|
enabled: true,
|
|
},
|
|
Keyboard: {
|
|
resize: KeyboardResize.Native,
|
|
},
|
|
},
|
|
};
|
|
|
|
if (process.env.CAP_SERVER_URL) {
|
|
Object.assign(config, {
|
|
server: {
|
|
url: process.env.CAP_SERVER_URL,
|
|
},
|
|
});
|
|
}
|
|
|
|
export default config;
|