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:
parent
a8034bb0bf
commit
220b54788a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user