1
0
mirror of https://github.com/jumpserver/lina.git synced 2025-05-11 01:27:13 +00:00

feat: webpack 添加websocket代理

This commit is contained in:
ibuler 2020-06-09 17:07:52 +08:00
parent a8034bb0bf
commit 220b54788a

View File

@ -44,6 +44,11 @@ module.exports = {
target: process.env.VUE_APP_CORE_HOST,
changeOrigin: true
},
'/ws/': {
target: 'ws://127.0.0.1:8080',
changeOrigin: true,
ws: true
},
'^/(core|static|media)/': {
target: process.env.VUE_APP_CORE_HOST,
changeOrigin: true