/** @format */ import configFun from '../build/vite-default.config'; const dirname = __dirname; const BASE_API = 'https://op.parking.sk1111.cn'; const proxy = { // '/api/data_park': { // target: 'http://100.86.13.179:8082/api', // changeOrigin: true, // rewrite: (path) => path.replace(/^\/api\/data_park/, ''), // }, // '/api/dyisc': { // 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/, ''), // }, // '/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/, ''), // }, '/qa': { target: 'http://100.86.13.123:8082/qa', changeOrigin: true, rewrite: (path) => path.replace(/^\/qa/, ''), }, '/api': { target: 'https://op.parking.sk1111.cn/', changeOrigin: true, }, }; export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });