Files
fe_portal_frontend/config/proxy.ts

33 lines
882 B
TypeScript
Raw Normal View History

2025-06-16 09:25:19 +08:00
export default {
dev: {
2025-07-17 11:38:51 +08:00
'/api/v1': {
target: 'http://10.0.0.10:18030',// 茂
// target: 'http://10.0.0.14:18030',// 李
changeOrigin: true,
pathRewrite: { '^/api/v1': '/v1' },
},
'/api': {
2025-07-17 11:38:51 +08:00
// target: 'http://10.242.37.148:18022',//
target: 'http://10.0.0.10:18013',// 茂
// target: 'http://10.0.0.125:18012',// 测试
// target: 'http://10.0.0.14:18012',// 李
// target: 'http://10.0.0.14:18030',// 李
// target: 'http://10.0.0.46:18013',// 袁
2025-06-16 09:25:19 +08:00
changeOrigin: true,
pathRewrite: { '^/api': '' },
2025-06-16 09:25:19 +08:00
},
2025-06-30 14:16:17 +08:00
'/upload': {
2025-07-07 17:01:07 +08:00
target: 'http://10.0.0.14:18012',//
2025-06-30 14:16:17 +08:00
changeOrigin: true,
pathRewrite: { '^/upload': '' },
},
2025-06-16 09:25:19 +08:00
},
prod: {
'/api/*': {
target: 'http://uscm.unicom.local:18022',//连接天宫的ng
changeOrigin: true,
pathRewrite: { '^': '' },
},
}
};