Initial commit
This commit is contained in:
98
config/proxy.ts
Normal file
98
config/proxy.ts
Normal file
@ -0,0 +1,98 @@
|
||||
export default {
|
||||
dev: {
|
||||
// '/api/wfap/v1/audit/bill/find/by/procid': {
|
||||
// target: 'http://10.242.37.148:8891/',//审批单 dev环境自动审批,暂时用不到
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
'/api/*': {
|
||||
// target: 'http://10.242.37.148:18022',//连接天宫的ng
|
||||
target: 'http://localhost:3000',//连接天宫的ng
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
},
|
||||
},
|
||||
UAT: {
|
||||
'/api/core-service-ebtp-userinfo': {
|
||||
target: 'http://localhost:18023',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/core-service-ebtp-userinfo': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-bid': {
|
||||
target: 'http://localhost:18003',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { 'biz-service-ebtp-bid': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-extend': {
|
||||
target: 'http://localhost:18018',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-service-ebtp-extend': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-project': {
|
||||
target: 'http://localhost:18012',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-service-ebtp-project': '' },
|
||||
},
|
||||
'/api/sys-manager-ebtp-project': {
|
||||
target: 'http://localhost:18030',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/sys-manager-ebtp-project': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-rsms': {
|
||||
target: 'http://localhost:18014',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-service-ebtp-rsms': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-agency': {
|
||||
target: 'http://localhost:18099',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-service-ebtp-agency': '' },
|
||||
},
|
||||
'/api/biz-supplier-manage': {
|
||||
target: 'http://localhost:18096',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-supplier-manage': '' },
|
||||
}
|
||||
|
||||
// '/api/wfap/v1/audit/bill/find/by/procid': {
|
||||
// target: 'http://10.242.31.158:8891/',//审批单 uat环境自动审批,暂时用不到
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
// '/living/api/*': {
|
||||
// // target: 'https://ai.cubigdata.cn:5001',//连接天宫的ng
|
||||
// target: 'http://localhost:3000',//连接天宫的ng
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '/living/api': '' },
|
||||
// },
|
||||
// '/api/*': {
|
||||
// target: 'http://10.242.31.158:18022',//连接天宫的ng
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
// '/doc/v1.0/*': {
|
||||
// target: 'http://10.242.31.158:8806',//连接天宫的ng
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
},
|
||||
sim: {
|
||||
// '/api/wfap/v1/audit/bill/find/by/procid': {
|
||||
// target: 'http://10.242.31.158:8891/',//审批单 uat环境自动审批,暂时用不到
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
'/api/*': {
|
||||
target: 'http://10.242.31.54:18022',//连接天宫的ng
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
},
|
||||
},
|
||||
prod: {
|
||||
'/api/*': {
|
||||
target: 'http://uscm.unicom.local:18022',//连接天宫的ng
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
},
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user