Open samgholipoor opened 4 weeks ago
You should read the docs, it is a pain to switch from auto update to prompt: https://vite-pwa-org.netlify.app/guide/auto-update.html#automatic-reload
The new prompt should be available next time the user opens a new browser session and you deploy a new version.
Hello guys, In advanced, thanks for this helpful plugin.
I have an app in production and my current config is like this:
VitePWA({ registerType: 'autoUpdate', // else })
for every new release, new SW.js would install and activated and my app gets reload and that's fine. now I wanna change the value to "prompt" in order to show my users new update is available. but when I push this new config to the production, new SW.js gets downloaded and installed but my users stuck in skip-waiting stage, and because new js code is not yet downloaded, my app doesn't show any update-prompt modal to users. and all my users never can see my new versions any more. what would I do to fix this issue?