AFFiNE/packages/frontend/apps/ios/capacitor.config.ts

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;