use proxy to backend.

This commit is contained in:
Miroslav Šedivý 2020-11-29 16:14:09 +01:00
parent deae203803
commit 34ac9098f0

View File

@ -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/',
},
},
},
}