logseq/capacitor.config.ts

36 lines
648 B
TypeScript
Raw Normal View History

import { CapacitorConfig } from '@capacitor/cli'
const config: CapacitorConfig = {
appId: 'com.logseq.app',
appName: 'Logseq',
bundledWebRuntime: false,
webDir: 'public',
plugins: {
SplashScreen: {
launchShowDuration: 500,
launchAutoHide: false,
androidScaleType: 'CENTER_CROP',
splashImmersive: false,
backgroundColor: '#002b36'
2021-11-29 15:15:29 +00:00
},
Keyboard: {
resize: 'none'
}
},
ios: {
scheme: 'Logseq'
}
}
2022-09-01 13:17:43 +00:00
if (process.env.LOGSEQ_APP_SERVER_URL) {
Object.assign(config, {
server: {
url: process.env.LOGSEQ_APP_SERVER_URL,
cleartext: true
2021-09-30 04:42:03 +00:00
}
})
}
export = config;