From 2182d947cc09e74bf107975b6fd5021129e5fd0c Mon Sep 17 00:00:00 2001 From: beefchimi Date: Fri, 26 Jul 2024 13:09:07 -0400 Subject: [PATCH] :hammer_and_wrench: [PWA] Revise config --- astro.config.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index b04f6fe..9329d14 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -34,9 +34,10 @@ 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: '/', + // navigateFallback: '/404', }, // Specify which public assets (in addition to the default html/css/js)