Open StaceyCode opened 5 years ago
在devServer.config.js配置proxy连接docker版后端,在进入工作区时报错。浏览器显示http://ide.test:8060/sockjs-node/info net::ERR_NAME_NOT_RESOLVED,console框显示“fsSocket error”,请问是websocket的连接问题吗?怎样处理可以在yarn start启动时正常运行?
proxy配置中启用ws,参考以下配置: '/sockjs-node/*': { target: 'ws://localhost:8080', changeOrigin: true, secure: false, ws: true },
在devServer.config.js配置proxy连接docker版后端,在进入工作区时报错。浏览器显示http://ide.test:8060/sockjs-node/info net::ERR_NAME_NOT_RESOLVED,console框显示“fsSocket error”,请问是websocket的连接问题吗?怎样处理可以在yarn start启动时正常运行?