40 lines
852 B
Java
40 lines
852 B
Java
// production 配置文件
|
|
|
|
module.exports = {
|
|
'/admin-api/': {
|
|
target: 'http://api.shop.iocoder.cn',
|
|
changeOrigin: true,
|
|
pathRewrite: {},
|
|
},
|
|
'/product-api/': {
|
|
target: 'http://api.shop.iocoder.cn',
|
|
changeOrigin: true,
|
|
pathRewrite: {},
|
|
},
|
|
'/order-api/': {
|
|
target: 'http://api.shop.iocoder.cn',
|
|
changeOrigin: true,
|
|
pathRewrite: {},
|
|
},
|
|
'/promotion-api/': {
|
|
target: 'http://api.shop.iocoder.cn',
|
|
changeOrigin: true,
|
|
pathRewrite: {},
|
|
},
|
|
'/pay-api/': {
|
|
target: 'http://api.shop.iocoder.cn',
|
|
changeOrigin: true,
|
|
pathRewrite: {},
|
|
},
|
|
'/user-api/': {
|
|
target: 'http://api.shop.iocoder.cn',
|
|
changeOrigin: true,
|
|
pathRewrite: {},
|
|
},
|
|
'/server/api/': {
|
|
target: 'https://preview.pro.ant.design/',
|
|
changeOrigin: true,
|
|
pathRewrite: { '^/server': '' },
|
|
},
|
|
};
|