增加多环境的配置

This commit is contained in:
YunaiV
2021-02-20 00:42:38 +08:00
parent 8427159d30
commit 32be92c6f3
5 changed files with 391 additions and 111 deletions

View File

@ -34,7 +34,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8080`,
target: `http://localhost:48080`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''