diff --git a/.env b/.env new file mode 100644 index 0000000..9a1feb0 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +API=http://localhost:8088 diff --git a/vue.config.js b/vue.config.js index 2bec9f9..0e50d6d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -44,7 +44,7 @@ module.exports = { }, proxy: { [process.env.VUE_APP_BASE_API]: { - target: 'http://localhost:8088', + target: process.env.API, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''