push
This commit is contained in:
132
nervui-operations-console/vite.config.ts
Normal file
132
nervui-operations-console/vite.config.ts
Normal file
@@ -0,0 +1,132 @@
|
||||
/** @format */
|
||||
|
||||
import configFun from '../build/vite-default.config';
|
||||
const dirname = __dirname;
|
||||
const BASE_API = 'https://op.parking.sk1111.cn';
|
||||
const proxy = {
|
||||
'/api/nerv-cpm': {
|
||||
target: 'http://portal.op.sh.dingcloud.com:30080/api/nerv-cpm',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api\/nerv-cpm/, ''),
|
||||
},
|
||||
'/api': {
|
||||
target: 'https://op.cloudai.dev.sk1111.cn',
|
||||
changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/qa/, ''),
|
||||
},
|
||||
// '/api/dyisc': {active
|
||||
// target: BASE_API,
|
||||
// changeOrigin: true,
|
||||
// // rewrite: (path) => path.replace(/^\/api\/dyisc/, ''),
|
||||
// },
|
||||
// '/api/vehicle': {
|
||||
// target: BASE_API,
|
||||
// changeOrigin: true,
|
||||
// // rewrite: (path) => path.replace(/^\/api/, '/'),
|
||||
// },
|
||||
// '/api/community': {
|
||||
// // target: 'http://100.73.156.51:8080/api',
|
||||
// target: 'http://100.86.13.179:8080/api',
|
||||
// // target: 'http://100.86.13.123:8082/api',
|
||||
// changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/api\/community/, ''),
|
||||
// },
|
||||
// '/api/inductionGateway': {
|
||||
// // target: 'http://100.73.156.51:8080/api',
|
||||
// target: 'http://100.86.13.189:8082/api',
|
||||
// // target: 'http://100.86.13.123:8082/api',
|
||||
// changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/api\/inductionGateway/, ''),
|
||||
// },
|
||||
// '/api/op_com': {
|
||||
// target: 'http://100.86.13.141:8082/api',
|
||||
// changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/api\/op_com/, ''),
|
||||
// },
|
||||
// '/api/op': {
|
||||
// // target: 'http://100.73.156.51:8080/api',
|
||||
// target: 'http://100.86.13.123:8082/api',
|
||||
// // target: 'http://100.86.13.123:8082/api',
|
||||
|
||||
// changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/api\/op/, ''),
|
||||
// },
|
||||
|
||||
// '/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/, ''),
|
||||
// },
|
||||
|
||||
'/qa': {
|
||||
target: 'http://100.86.13.232:8986/qa',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/qa/, ''),
|
||||
},
|
||||
// '/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/, ''),
|
||||
// },
|
||||
};
|
||||
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });
|
Reference in New Issue
Block a user