You can find a set of examples in the @vite-pwa/vitepress integration repo.
You can also test
VitePress integration using the source code of this documentation website, you can find it in the documentation repo.
The behavior used in this website is Prompt for update.
To run this site on your local, execute the following script from your shell (from root folder):
pnpm run preview