|
|
|
import configFun from '../build/vite-default.config';
|
|
|
|
const dirname = __dirname;
|
|
|
|
const proxy = {
|
|
|
|
// '/api/web': {
|
|
|
|
// // target: 'http://100.73.156.51:8080/api',
|
|
|
|
// target: 'http://100.86.13.179:8080/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/web/, ''),
|
|
|
|
// },
|
|
|
|
'/qa': {
|
|
|
|
target: 'http://100.86.13.179:8080/qa',
|
|
|
|
// target: 'http://100.86.13.206:8081/qa',
|
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: (path) => path.replace(/^\/qa/, ''),
|
|
|
|
},
|
|
|
|
// '/api/community': {
|
|
|
|
// // target: 'http://100.73.156.51:8080/api',
|
|
|
|
// target: 'http://100.86.13.179:8080/api',
|
|
|
|
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/community/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/parking_merchant': {
|
|
|
|
// // target: 'http://100.73.70.246:8080/api',
|
|
|
|
// // //充电
|
|
|
|
// // target: 'http://100.73.156.33:8080/api',
|
|
|
|
// target: 'http://100.86.13.125:8080/api',
|
|
|
|
// // target: 'http://100.73.156.31:8080/api',
|
|
|
|
// // 测试地址
|
|
|
|
// // target: 'https://parking.test.sk1111.cn/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/parking_merchant/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/device': {
|
|
|
|
// // target: 'http://100.73.156.51:8082/api',
|
|
|
|
// target: 'http://100.86.13.141:8081/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/device/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/file': {
|
|
|
|
// // target: 'http://100.73.156.51:8082/api',
|
|
|
|
// target: 'http://100.86.13.141:8080/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/file/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/parking-out-gateway': {
|
|
|
|
// // target: 'http://100.73.156.27:8081/api',
|
|
|
|
// target: 'http://100.86.13.189:8080/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/parking-out-gateway/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/coupon': {
|
|
|
|
// // target: 'http://100.73.70.236:8080/api',
|
|
|
|
// target: 'http://100.86.13.125:8081/api',
|
|
|
|
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/coupon/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/induction': {
|
|
|
|
// // target: 'http://100.73.70.236:8082/api',
|
|
|
|
// target: 'http://100.86.13.189:8081/api',
|
|
|
|
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/induction/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/cms': {
|
|
|
|
// // target: 'http://100.73.156.27:8080/api',
|
|
|
|
// target: 'http://100.86.13.179:8081/api',
|
|
|
|
// //测试地址
|
|
|
|
// // target: 'https://parking.test.sk1111.cn/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/cms/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/charge': {
|
|
|
|
// // 充电
|
|
|
|
// // target: 'http://100.73.70.36:8888/api',
|
|
|
|
// target: 'http://100.86.13.166:8081/api',
|
|
|
|
// //测试地址
|
|
|
|
// // target: 'https://parking.test.sk1111.cn/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/charge/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/car_maintenance': {
|
|
|
|
// // 充电
|
|
|
|
// // target: 'http://100.73.70.36:8383/api',
|
|
|
|
// target: 'http://100.86.13.166:8080/api',
|
|
|
|
|
|
|
|
// // 测试地址
|
|
|
|
// // target: 'https://parking.test.sk1111.cn/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/car_maintenance/, ''),
|
|
|
|
// },
|
|
|
|
// '/api/person': {
|
|
|
|
// target: 'http://100.86.13.13:8086/api',
|
|
|
|
// changeOrigin: true,
|
|
|
|
// rewrite: (path) => path.replace(/^\/api\/person/, ''),
|
|
|
|
// },
|
|
|
|
|
|
|
|
'/carbon_emission': {
|
|
|
|
//target: 'https://parking.test.sk1111.cn/',
|
|
|
|
target: 'http://140.210.143.1:14492',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });
|