18 lines
507 B
TypeScript
18 lines
507 B
TypeScript
/** @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: '../' });
|