From 5e7c2f913001ccc822461a632e80dab2cceb22df Mon Sep 17 00:00:00 2001 From: jmal Date: Mon, 26 Jun 2023 19:02:14 +0800 Subject: [PATCH] Update vue.config.js --- .env | 1 + vue.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .env 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]: ''