Configure devServer client websocket to avoid [object Event] messages

cgen-175205ff54f14be4a1c7d26e16c61cf4
This commit is contained in:
Builder.io 2025-09-17 09:48:47 +00:00
parent 3cccc75860
commit 700215ed3f

View file

@ -40,6 +40,16 @@ module.exports = {
allowedHosts: "all", allowedHosts: "all",
host: "0.0.0.0", host: "0.0.0.0",
port: 8080, port: 8080,
client: {
// Ensure websocket connects to the expected host/port when proxied
webSocketURL: {
hostname: "localhost",
port: 8080,
protocol: "ws",
pathname: "/sockjs-node"
}
},
webSocketServer: "ws",
watchFiles: [], watchFiles: [],
}, },
module: { module: {