修改 proxy 构建配置,
This commit is contained in:
parent
97eddba08d
commit
75b133eab8
@ -1,11 +1,9 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
'/admin-api/': {
|
'/admin-api -> http://180.167.213.26:18083/': {
|
||||||
target: 'http://180.167.213.26:18083/',
|
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {},
|
pathRewrite: {},
|
||||||
},
|
},
|
||||||
'/server/api/': {
|
'/server/api -> https://preview.pro.ant.design/': {
|
||||||
target: 'https://preview.pro.ant.design/',
|
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '^/server': '' },
|
pathRewrite: { '^/server': '' },
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user