Skip to content

Commit

Permalink
🛠️ [PWA] Revise config
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jul 26, 2024
1 parent cd8fa62 commit e238be4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ export default defineConfig({
AstroPWA({
workbox: {
// Not sure how this differs from `includeAssets`...
// globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
globPatterns: ['**/*.{css,js,html,woff2}', 'assets/*.{png,webp}'],
// Not sure if we actually want to specify this fallback.
navigateFallback: '/404',
navigateFallback: '/',
// The `chicken` image is 2.2MB, so we increase the limit to 3MB.
maximumFileSizeToCacheInBytes: 3000000,
},

// Specify which public assets (in addition to the default html/css/js)
Expand Down

0 comments on commit e238be4

Please sign in to comment.