Files
SaaS-lib/nervui-work-flow/vite.config.ts
xuziqiang d0155dbe3c push
2024-05-15 17:29:42 +08:00

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: '../' });