coding / WebIDE

Coding WebIDE Community Edition
https://ide.coding.net/community
BSD 3-Clause "New" or "Revised" License
1.71k stars 411 forks source link

前端通过yarn start运行后,浏览器报http://ide.test:8060/sockjs-node/info net::ERR_NAME_NOT_RESOLVED #350

Open StaceyCode opened 5 years ago

StaceyCode commented 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启动时正常运行?

sunzp21 commented 5 years ago

proxy配置中启用ws,参考以下配置: '/sockjs-node/*': { target: 'ws://localhost:8080', changeOrigin: true, secure: false, ws: true },