Skip to content

Commit

Permalink
Add /docs/ pattern to the navigateFallbackDenylist
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed Aug 26, 2024
1 parent 9d25d0e commit f5db696
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ export default defineConfig(({ mode }) => ({
},
workbox: {
// Don't use 'index.html' fallback for these routes
navigateFallbackDenylist: [/^\/(v\d+|socket\.io|api)\//, /\/(config\.json|version\.txt)$/],
navigateFallbackDenylist: [
/^\/(v\d+|socket\.io|api)\//,
/^\/(config\.json|version\.txt)$/,
/^\/docs\//,
],
// Add 'woff2' to the default 'globPatterns'
globPatterns: ['**/*.{js,wasm,css,html,woff2}'],
runtimeCaching: [
Expand Down

0 comments on commit f5db696

Please sign in to comment.