Skip to content

Commit

Permalink
fix: remove broken service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
madcampos committed Aug 9, 2024
1 parent fe2cacf commit cb9770c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit cb9770c

Please sign in to comment.