fix: add new service worker (#2971)

This commit is contained in:
Joaquín Sánchez 2024-09-23 14:45:46 +02:00 committed by GitHub
parent 2f4ee35561
commit 4d95c17e86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 31 additions and 1 deletions

View file

@ -7,7 +7,7 @@ export const pwa: VitePWANuxtOptions = {
disable: /* temporarily test in CI isPreview || */ (isDevelopment && process.env.VITE_DEV_PWA !== 'true'),
scope: '/',
srcDir: './service-worker',
filename: 'sw.ts',
filename: 'elk-sw.ts',
strategies: 'injectManifest',
injectRegister: false,
includeManifestIcons: false,