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
在前一个版本还能将服务端的中间件通过扩展方式将websocket和express中间件添加到vite服务中,虽然开发模式得加vite-hmr头才能访问自定义websocket,但好歹能扩展
升级版本后发现websocket路径也被限制了,导致必须重写hmr服务才行,后期升级太麻烦了
建议在vite.config.js中增加配置来开放自定义websocket,可选vite-hmr头或者不启用url匹配规则
No response
The text was updated successfully, but these errors were encountered:
Related: #13218
Sorry, something went wrong.
@bluwy 感谢,问题解决了
No branches or pull requests
Description
在前一个版本还能将服务端的中间件通过扩展方式将websocket和express中间件添加到vite服务中,虽然开发模式得加vite-hmr头才能访问自定义websocket,但好歹能扩展
升级版本后发现websocket路径也被限制了,导致必须重写hmr服务才行,后期升级太麻烦了
Suggested solution
建议在vite.config.js中增加配置来开放自定义websocket,可选vite-hmr头或者不启用url匹配规则
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: