Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持生产版本更新的动态通知吗 #4137

Open
4 tasks done
ocweai opened this issue Aug 14, 2024 · 1 comment
Open
4 tasks done

支持生产版本更新的动态通知吗 #4137

ocweai opened this issue Aug 14, 2024 · 1 comment

Comments

@ocweai
Copy link

ocweai commented Aug 14, 2024

Is your feature request related to a problem? Please describe.

希望可以有个版本更新通知的功能

Describe the solution you'd like

支持在 md 文件更新后去通知用户主动刷新对应路由页面

Describe alternatives you've considered

No response

Additional context

No response

Validations

@brc-dd
Copy link
Member

brc-dd commented Aug 14, 2024

You can use vite-plugin-pwa for that - https://vite-pwa-org.netlify.app/frameworks/vitepress

Or if you don't want full PWA and just want a update prompt, then you probably will need to poll your server for any changes in the manifest (you can basically create a file in buildEnd hook having timestamp) and show the update prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants