50 lines
1.4 KiB
TypeScript
50 lines
1.4 KiB
TypeScript
/*
|
|
* @Author: zzy 411037547@qq.com
|
|
* @Date: 2022-04-28 10:47:35
|
|
* @LastEditors: zzy 411037547@qq.com
|
|
* @LastEditTime: 2023-02-02 18:22:36
|
|
* @FilePath: \cloud-platform\config\proxy.ts
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
/**
|
|
* 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
|
|
* -------------------------------
|
|
* The agent cannot take effect in the production environment
|
|
* so there is no configuration of the production environment
|
|
* For details, please see
|
|
* https://pro.ant.design/docs/deploy
|
|
*/
|
|
export default {
|
|
dev: {
|
|
'/EShangApiMain/': {
|
|
target: 'http://127.0.0.1:8900',
|
|
changeOrigin: true,
|
|
pathRewrite: { '^/EShangApiMain': '/EShangApiMain' },
|
|
},
|
|
'/Coop.Merchant/': {
|
|
target: 'https://user.eshangtech.com',
|
|
changeOrigin: true,
|
|
pathRewrite: { '^': '' },
|
|
},
|
|
'/EShangApiDashboard/': {
|
|
target: 'http://127.0.0.1:8900', // 'http://dev.eshangtech.com:8001',
|
|
changeOrigin: true,
|
|
pathRewrite: { '^/EShangApiDashboard': '/EShangApiDashboard' }
|
|
}
|
|
},
|
|
test: {
|
|
'/api/': {
|
|
target: 'https://192.168.11.201:8081',
|
|
changeOrigin: true,
|
|
pathRewrite: { '^': '' },
|
|
},
|
|
},
|
|
pre: {
|
|
'/api/': {
|
|
target: 'your pre url',
|
|
changeOrigin: true,
|
|
pathRewrite: { '^': '' },
|
|
},
|
|
},
|
|
};
|