Open DanielStout5 opened 2 years ago
I get the same . My config looks like this
module.exports = defineConfig({
transpileDependencies: true,
outputDir: distPath,
publicPath: process.env.NODE_ENV === "production" ? distPath : "/",
indexPath: path.resolve(__dirname, distPathRoot + "index.html"),
filenameHashing: false,
devServer: {
https: true,
port: 7777,
},
})
Version
5.0.4
Reproduction link
github.com
Environment info
Steps to reproduce
npm run serve
What is expected?
The change should be immediately visible
What is actually happening?
The change is not visible, and there is an error about unable to connect to the websocket in the console.
It looks like the hot reload websocket connection is using the network IP address even on localhost, instead of using the host from the current environment.
So on https://localhost:8081 it's trying to load wss://192.168.0.109:8081/ws (my computer's local IP), and my browser (both Firefox and Chrome) are generating a security warning that I can't see to accept.
It does work if I manually open https://192.168.0.109:8081 and accept the security warning, but this is rather non-obvious when onboarding people to a project.