Joaquín Sánchez
Joaquín Sánchez
Use vanillajs or react virtual module, check the example in the examples folder: check the warning in the docs https://vite-pwa-org.netlify.app/guide/auto-update.html I Will try to add a new internal recipe to...
What's your vite pwa configuration?
Why do you need to include the script this way? if you disable the pwa, the astro pwa integration will create a dummy virtual module.
you can try adding an env var when testing, then use it to disable PWA.
using `generateSW` I guess no, can you provide a minimal reproduction? Maybe I can check what's happening...
If you use a custom service worker you can import `mockServiceWorker.js` script, but since you use `generateSW` strategy there is no way to include that script (iirc you can only...
check registering the msw sw in another scope: check last entry here https://stackoverflow.com/questions/77292614/vite-pwa-not-able-to-register-mock-service-worker-in-parallel-with-other-servi
Remove `//` from all pwa icons, the browser will resolve them relative to the webmanifest
Uhmm, so the problem is the webmanifest is generated on root...
@Sceat provide minimal reproduction (and context 🙏 )