We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
现在devServer应该是默认通过域名的协议判断了hmr走ws还是wss协议,但是实际上在走代理的场景下不适用 ,如果能参考 vite hmr config,可以在build.json中自行配置hmr的协议就好了
The text was updated successfully, but these errors were encountered:
目前的确是通过域名的协议判断,这个需求我们评估下
Sorry, something went wrong.
可以写个vite插件暂时替换hmr配置
{ name: 'config-vite-hmr', config: () => ({ server: { hmr: { clientPort: 443, }, }, }), },
ClarkXia
No branches or pull requests
What is the current behavior? 发生了什么?
现在devServer应该是默认通过域名的协议判断了hmr走ws还是wss协议,但是实际上在走代理的场景下不适用 ,如果能参考
vite hmr config,可以在build.json中自行配置hmr的协议就好了
What is the expected behavior? 期望的结果是什么?
Any additional comments? 相关环境信息?
The text was updated successfully, but these errors were encountered: