mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
use proxy to backend.
This commit is contained in:
parent
deae203803
commit
34ac9098f0
@ -12,5 +12,14 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
disableHostCheck: true,
|
disableHostCheck: true,
|
||||||
|
proxy: {
|
||||||
|
'^/ws': {
|
||||||
|
target: 'ws://192.168.1.20:3000/',
|
||||||
|
ws: true,
|
||||||
|
},
|
||||||
|
'^/api': {
|
||||||
|
target: 'http://192.168.1.20:3000/',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user