Closed n-ce closed 6 months ago
Totally Forgot about this https://vite-pwa-org.netlify.app/guide/auto-update.html
😥😥 Now have to figure out a way to migrate without losing user data.
Okay here's the plan so far : I will implant a swDetonator in the latest production with an if condition that will detonate it only when it detects a commit message that contains the string 'detonate'. Then prod will not receive any updates for X amount of time. Then when X time finishes, I will release the new sw for production with the commit containing the string 'detonate'. Here X amount of time denotes the Service Worker Cache retention time. Having this time range before detonation will ensure all users are on the latest version to support detonation.
Implementation
Advantages :
Disadvantages (over automatic update) :