mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-20 16:12:31 +00:00
feat: capacitor assets fix: capacitor service worker registration feat: capacitor auto service worker registration
36 lines
635 B
JavaScript
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
|