You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

127 lines
3.7 KiB

/** @format */
import configFun from '../build/vite-default.config';
const dirname = __dirname;
const proxy = {
// '/api/parking_merchant': {
// target: 'http://100.86.13.125:8080/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/parking_merchant/, ''),
// },
// '/api/sheyang_cdc': {
// target: 'http://100.86.13.13:8081/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/sheyang_cdc/, ''),
// },
// '/api/web': {
// target: 'http://100.86.13.96:8080/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/web/, ''),
// },
// '/api/pension': {
// target: 'http://100.86.13.13:8080/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/pension/, ''),
// },
// '/api/person': {
// target: 'http://100.86.13.246:8083/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/person/, ''),
// },
// '/api/community': {
// target: 'http://100.86.13.13:8080/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/community/, ''),
// },
// '/api/bank': {
// target: 'http://100.86.13.29:8088/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/bank/, ''),
// },
// '/api/lease': {
// target: 'http://100.86.13.13:8087/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/lease/, ''),
// },
// '/api/patrol': {
// target: 'http://100.86.13.13:8082/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/patrol/, ''),
// },
// '/api/op': {
// target: 'http://100.86.13.123:8082/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/op/, ''),
// },
// '/api/device': {
// target: 'http://100.86.13.141:8081/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/device/, ''),
// },
// '/api/file': {
// target: 'http://100.86.13.29:8082/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/file/, ''),
// },
// '/api/parking-out-gateway': {
// target: 'http://100.86.13.189:8080/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/parking-out-gateway/, ''),
// },
// '/api/induction': {
// target: 'http://100.86.13.189:8081/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/induction/, ''),
// },
// '/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/partyBuild': {
// target: 'http://100.86.13.232:8083/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/partyBuild/, ''),
// },
// '/api/meet': {
// target: 'http://100.86.13.104:8181//api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/meet/, ''),
// },
'/qa': {
target: 'http://100.86.13.13:8080/qa',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/qa/, ''),
},
// '/api/workflow': {
// target: 'http://100.86.13.148:8080/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/workflow/, ''),
// },
'/api': {
target: 'https://manage.community.sk1111.cn/',
// target: 'https://dingcloud.office.sk1111.cn',
changeOrigin: true,
},
// '/api': {
// target: 'https://manage.test.community.sk1111.cn',
// changeOrigin: true,
// },
};
export default configFun({
dirname,
proxy,
serviceMode: 'saas',
baseDir: '../',
// customOutput: true,
});