From cb9770cea3055dc20ab7a90246e3f2e51fefc245 Mon Sep 17 00:00:00 2001 From: madcampos Date: Fri, 9 Aug 2024 15:00:30 -0400 Subject: [PATCH] fix: remove broken service worker --- astro.config.ts | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/astro.config.ts b/astro.config.ts index 896756c..1e8a93a 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -55,18 +55,19 @@ export default defineConfig({ includeAssets: ['/icons/icon.svg'], manifest, workbox: { - // eslint-disable-next-line @typescript-eslint/no-magic-numbers - maximumFileSizeToCacheInBytes: 1024 * 128, - cleanupOutdatedCaches: true, - clientsClaim: true, - skipWaiting: false, - navigateFallback: '/offline', - navigateFallbackDenylist: [/\.(?:png|gif|jpg|jpeg|webp|svg|ico)$/iu], - directoryIndex: 'index.html', - runtimeCaching: [externalResourcesCache, assetsCache, scriptsCache, pagesCache] + // eslint-disable-next-line @typescript-eslint/no-magic-numbers + maximumFileSizeToCacheInBytes: 1024 * 128, + cleanupOutdatedCaches: true, + clientsClaim: true, + skipWaiting: false, + navigateFallback: '/offline', + navigateFallbackDenylist: [/\.(?:png|gif|jpg|jpeg|webp|svg|ico)$/iu], + directoryIndex: 'index.html', + runtimeCaching: [externalResourcesCache, assetsCache, scriptsCache, pagesCache] }, + selfDestroying: true, devOptions: { - enabled: false + enabled: false } }), sitemap({