mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 04:21:56 +03:00
36 lines
628 B
TypeScript
36 lines
628 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: '.',
|
|
},
|
|
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;
|