修改 proxy 构建配置,

pull/1/head
sin 2019-03-10 13:31:49 +08:00
parent 97eddba08d
commit 75b133eab8
1 changed files with 2 additions and 4 deletions

View File

@ -1,11 +1,9 @@
module.exports = {
'/admin-api/': {
target: 'http://180.167.213.26:18083/',
'/admin-api -> http://180.167.213.26:18083/': {
changeOrigin: true,
pathRewrite: {},
},
'/server/api/': {
target: 'https://preview.pro.ant.design/',
'/server/api -> https://preview.pro.ant.design/': {
changeOrigin: true,
pathRewrite: { '^/server': '' },
},