2019-03-10 16:40:16 +08:00
|
|
|
// production 配置文件
|
|
|
|
|
2019-05-09 00:10:44 +08:00
|
|
|
module.exports = {
|
2019-03-10 16:40:16 +08:00
|
|
|
'/admin-api/': {
|
2020-04-14 20:10:40 +08:00
|
|
|
target: 'http://api.shop.iocoder.cn',
|
2019-03-10 16:40:16 +08:00
|
|
|
changeOrigin: true,
|
2019-04-09 21:08:20 +08:00
|
|
|
pathRewrite: {},
|
|
|
|
},
|
2019-05-08 18:57:12 +08:00
|
|
|
'/product-api/': {
|
2020-04-14 20:10:40 +08:00
|
|
|
target: 'http://api.shop.iocoder.cn',
|
2019-05-08 18:57:12 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {},
|
|
|
|
},
|
2019-04-09 21:08:20 +08:00
|
|
|
'/order-api/': {
|
2020-04-14 20:10:40 +08:00
|
|
|
target: 'http://api.shop.iocoder.cn',
|
2019-04-09 21:08:20 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {},
|
|
|
|
},
|
2019-05-08 18:57:12 +08:00
|
|
|
'/promotion-api/': {
|
2020-04-14 20:10:40 +08:00
|
|
|
target: 'http://api.shop.iocoder.cn',
|
2019-05-08 18:57:12 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {},
|
|
|
|
},
|
2019-04-09 21:08:20 +08:00
|
|
|
'/pay-api/': {
|
2020-04-14 20:10:40 +08:00
|
|
|
target: 'http://api.shop.iocoder.cn',
|
2019-04-09 21:08:20 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {},
|
|
|
|
},
|
|
|
|
'/user-api/': {
|
2020-04-14 20:10:40 +08:00
|
|
|
target: 'http://api.shop.iocoder.cn',
|
2019-04-09 21:08:20 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {},
|
2019-03-10 16:40:16 +08:00
|
|
|
},
|
|
|
|
'/server/api/': {
|
|
|
|
target: 'https://preview.pro.ant.design/',
|
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: { '^/server': '' },
|
|
|
|
},
|
|
|
|
};
|