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.
 
 
 
 
 
 

55 lines
1.5 KiB

/** @format */
import configFun from '../build/vite-default.config';
const dirname = __dirname;
const proxy = {
'/api/op_com': {
target: 'http://100.86.13.61:8082/api',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/op_com/, ''),
},
'/api/op': {
target: 'http://100.86.13.61:8086/api',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/op/, ''),
},
'/api/file': {
// target: 'http://100.73.156.51:8082/api',
target: 'http://100.86.13.29:8082/api',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/file/, ''),
},
'/api/person': {
target: 'http://100.86.13.246:8083/api',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/person/, ''),
},
'/api/resource': {
target: 'http://100.86.13.61:8086/api',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/resource/, ''),
},
'/qa': {
target: 'http://100.86.13.61:8086/qa',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/qa/, ''),
},
// '/api/community': {
// target: 'https://manage.community.sk1111.cn/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/community/, ''),
// },
'/api': {
target: 'http://op.community.sk1111.cn',
changeOrigin: true,
},
// '/api': {
// target: 'http://op.jlf.community.ddjl.cn/',
// changeOrigin: true,
// },
};
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });