This is a Vue 3 / SPA sample implementation of a process that determines that a newer version is available and asks the user if there wants to upgrade.
- Vue 3
- Vite
- Pinia
``
Bump a version of manualy.
npm version (major|minor|patch)
Generate to public/latestversion.json
that can access by this app can access.
grep -e '"version":' package.json | sed -e 's/^/{/' | sed -e 's/[,]/}/' > public/latestversion.json
... or Auto generate by GitHub Actions.
And you going to push the code.