diff --git a/vue.config.js b/vue.config.js index ce485b59..a8563343 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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/', + }, + }, }, }