mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-03 03:12:41 +02:00
use proxy to backend.
This commit is contained in:
parent
deae203803
commit
34ac9098f0
1 changed files with 9 additions and 0 deletions
|
@ -12,5 +12,14 @@ module.exports = {
|
|||
},
|
||||
devServer: {
|
||||
disableHostCheck: true,
|
||||
proxy: {
|
||||
'^/ws': {
|
||||
target: 'ws://192.168.1.20:3000/',
|
||||
ws: true,
|
||||
},
|
||||
'^/api': {
|
||||
target: 'http://192.168.1.20:3000/',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue