From 25ff2fc4ef2ad4bfccf6d2059d0159608ad71f8f Mon Sep 17 00:00:00 2001 From: ancienter <36272003+ancienter@users.noreply.github.com> Date: 星期二, 09 四月 2024 09:52:23 +0800 Subject: [PATCH] Merge branch '648540858:master' into develop-add-api-key --- web_src/config/index.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web_src/config/index.js b/web_src/config/index.js index cec91b8..ad5f940 100644 --- a/web_src/config/index.js +++ b/web_src/config/index.js @@ -12,14 +12,14 @@ assetsPublicPath: '/', proxyTable: { '/debug': { - target: 'http://localhost:18080', + target: 'http://127.0.0.1:8080', changeOrigin: true, pathRewrite: { '^/debug': '/' } }, '/static/snap': { - target: 'http://localhost:18080', + target: 'http://127.0.0.1:18082', changeOrigin: true, // pathRewrite: { // '^/static/snap': '/static/snap' @@ -29,11 +29,13 @@ }, // Various Dev Server settings - host: 'localhost', // can be overwritten by process.env.HOST + host:"127.0.0.1", + useLocalIp: false, // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: false, errorOverlay: true, notifyOnErrors: true, + hot: true,//鑷姩淇濆瓨 poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- -- Gitblit v1.8.0