Skip to content

Commit

Permalink
⚗️ [PWA] Try to fix the 404 redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jul 22, 2024
1 parent 92887ac commit 852cdf7
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 @@ -29,11 +29,13 @@ export default defineConfig({
integrations: [
AstroPWA({
workbox: {
// Not sure how this differs from `includeAssets`...
// globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
navigateFallback: '/404',
// Using this seems to always `404` for saved "web apps".
// navigateFallback: '/404',
},

// Specify which assets (in addition to the default html/css/js)
// Specify which public assets (in addition to the default html/css/js)
// we want to include in our pre-cache.
// includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],

Expand Down

0 comments on commit 852cdf7

Please sign in to comment.