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.
 
 
 
 
 
 

38 lines
1.2 KiB

/** @format */
import configFun from '../build/vite-default.config';
const dirname = __dirname;
const proxy = {
// '/api/smartReport': {
// target: 'http://100.86.40.113:9099/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/smartReport/, ''),
// },
// '/api/pension': {
// target: 'https://jgyl.pension.sk1111.cn/api/pension',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/pension/, ''),
// },
// '/api/op': {
// target: 'http://100.86.13.26:8081/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/op/, ''),
// },
'/qa': {
target: 'http://100.86.40.113:9099/qa',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/qa/, ''),
},
// '/api/city': {
// target: 'http://100.86.13.148:8082/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/city/, ''),
// },
'/api': {
// target: 'http://op.qa.whopen.sk1111.cn/api',
target: 'http://op.whopen.sk1111.cn/api',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
};
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });