vite-pwa / nuxt

Zero-config PWA Plugin for Nuxt 3
https://vite-pwa-org.netlify.app/frameworks/nuxt
MIT License
454 stars 22 forks source link

Default value of navigateFallbackAllowlist #139

Open Perdjesk opened 5 months ago

Perdjesk commented 5 months ago

The default value for navigateFallbackAllowlist in devOptions is set to /\//.

https://github.com/vite-pwa/nuxt/blob/106977993291d2443d52569b335f78e8a03e0a69/src/utils/config.ts#L40-L45

While in vite-plugin-pwa and docs it is set to /^\/$/

https://github.com/vite-pwa/vite-plugin-pwa/blob/75b4fdc10de1716f44ba8ba3b993bfe02912b171/src/plugins/dev.ts#L167-L169 https://vite-pwa-org.netlify.app/guide/development#type-declarations

Potentially related: https://github.com/vite-pwa/nuxt/issues/77 https://github.com/vite-pwa/nuxt/issues/81 https://github.com/vite-pwa/nuxt/issues/56