migu/capacitor/capacitor.config.js
2024-07-28 15:54:38 +07:00

26 lines
572 B
JavaScript

const mode = process.env.NODE_ENV?.trim() || 'development'
const config = {
appId: 'watch.migu',
appName: 'Migu',
webDir: 'build',
android: {
buildOptions: {
keystorePath: './watch.migu',
keystorePassword: '',
keystoreAlias: 'watch.migu'
}
},
plugins: {
SplashScreen: { launchShowDuration: 0 },
CapacitorHttp: { enabled: false },
CapacitorNodeJS: { nodeDir: 'nodejs' }
},
server: {
cleartext: true
}
}
if (mode === 'development') config.server.url = 'http://localhost:5001/index.html'
module.exports = config