Files
fe_supplier_frontend/config/proxy.ts
2025-08-06 15:57:40 +08:00

43 lines
1.1 KiB
TypeScript

export default {
dev: {
'/api/v1': {
// target: 'http://10.0.0.10:18030',//
target: 'http://10.0.0.14:18030',// 李
// target: 'http://10.0.0.46:18030',// 袁
changeOrigin: true,
pathRewrite: { '^/api/v1': '/v1' },
},
'/api': {
// target: 'http://10.242.37.148:18022',//
// target: 'http://10.0.0.10:18012',// 茂
// target: 'http://10.0.0.125:18012',// 测试
target: 'http://10.0.0.14:18012',// 李
// target: 'http://10.0.0.46:18030',// 袁
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
'/upload': {
target: 'http://10.0.0.14:18012',//
changeOrigin: true,
pathRewrite: { '^/upload': '' },
},
},
prod: {
'/api/v1/*': {
target: 'http://10.0.0.125:18030',//
changeOrigin: true,
pathRewrite: { '^/api/v1': '/v1' },
},
'/api/*': {
target: 'http://10.0.0.125:18012',//
changeOrigin: true,
pathRewrite: { '^': '' },
},
'/upload/*': {
target: 'http://10.0.0.125:18012',//
changeOrigin: true,
pathRewrite: { '^/upload': '' },
},
}
};