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.
 
 
 
 
 
 

17 lines
507 B

/** @format */
import configFun from '../build/vite-default.config';
const dirname = __dirname;
const proxy = {
'/api/person': {
target: 'http://100.86.13.13:8086/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/, ''),
},
};
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });