migu/capacitor/capacitor.config.js
ThaUnknown f99ce83da2 feat: capacitor android build options
feat: capacitor assets
fix: capacitor service worker registration
feat: capacitor auto service worker registration
2023-11-18 14:57:35 +01:00

36 lines
635 B
JavaScript

let config = {
appId: 'watch.miru',
appName: 'Miru',
webDir: 'build',
bundledWebRuntime: false,
android: {
buildOptions: {
keystorePath: './watch.miru',
keystorePassword: '',
keystoreAlias: 'watch.miru'
}
},
plugins: {
SplashScreen: { launchShowDuration: 0 },
CapacitorHttp: { enabled: false }
}
}
switch (process.env.NODE_ENV) {
case 'qa':
config = {
...config
}
break
default:
config = {
...config
// server: {
// url: 'http://localhost:5001/index.html',
// cleartext: true
// }
}
break
}
module.exports = config