Skip to content

Commit

Permalink
fix: exclude pass from workbox
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jan 25, 2024
1 parent d643a98 commit b59431c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export default defineNuxtConfig({
workbox: {
navigateFallback: '/',
globPatterns: ['**/*.{js,json,css,html,txt,svg,png,ico,webp,woff,woff2,ttf,eot,otf,wasm}'],
navigateFallbackDenylist: [
/^\/pass/, // No caching on passes
],
},
devOptions: {
enabled: process.env.VITE_DEV_PWA === 'true',
Expand Down

0 comments on commit b59431c

Please sign in to comment.