You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
its normal when i deploy my webapp in http mode, but when deploy it in https mode,it begin to repeated connecting every five seconds and always refesh even with the hmr setting. it also doest work in wss
here is my website infos:
1.website: https://blakeyi.cn/
2.code: https://github.com/blakeyi/blog-vue-typescript
3.vite.config.ts
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Works fine in dev locally, set server.https = true and server.hmr.protocal = 'wss', hope it helps you :)
it still doesnt work,thanks a lot for your reply
ok, it work by the follow setting, thanks a lot,i wondering what‘s the role of ’strictPort, and why need to set hmr.port = 443
server: {
host: "0.0.0.0",
port: 3000,
strictPort: true, // needed
hmr: {
port: 443, // needed
},
},
Describe the bug
its normal when i deploy my webapp in http mode, but when deploy it in https mode,it begin to repeated connecting every five seconds and always refesh even with the hmr setting. it also doest work in wss
here is my website infos:
1.website: https://blakeyi.cn/
2.code: https://github.com/blakeyi/blog-vue-typescript
3.vite.config.ts
Reproduction
visit https://blakeyi.cn/
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: