fix(webapp): use direct service worker registration
This commit is contained in:
@@ -35,6 +35,7 @@ export default defineConfig({
|
||||
tailwindcss(),
|
||||
sveltekit(),
|
||||
VitePWA({
|
||||
injectRegister: false,
|
||||
registerType: 'autoUpdate',
|
||||
includeAssets: ['icons/apple-touch-icon.png', 'icons/pwa-192x192.png', 'icons/pwa-512x512.png'],
|
||||
manifest: {
|
||||
@@ -73,7 +74,7 @@ export default defineConfig({
|
||||
navigateFallbackDenylist: [/^\/api\//, /^\/devices/, /^\/device-links/, /^\/streams/, /^\/events/, /^\/recordings/, /^\/videos/, /^\/push-notifications/, /^\/socket\.io\//]
|
||||
},
|
||||
devOptions: {
|
||||
enabled: true
|
||||
enabled: false
|
||||
}
|
||||
})
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user