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.
 
 
 
 
 
 

24 lines
714 B

/** @format */
import configFun from '../build/vite-default.config';
const dirname = __dirname;
const proxy = {
'/assets/fonts': {
target: 'http://portal.devops.wh.dingcloud.com:30080/assets/fonts',
changeOrigin: true,
rewrite: (path: any) => path.replace(/^\/assets\/fonts/, ''),
},
'/api/idaas': {
target: 'http://100.86.13.85:8080/api',
changeOrigin: true,
ws: true,
rewrite: (path: any) => path.replace(/^\/api\/idaas/, ''),
},
'/api': {
// target: 'http://portal.cloud.dingcloud.com:30080/',
target: 'http://portal.cloud.sh.dingcloud.com:30080',
changeOrigin: true,
},
};
export default configFun({ dirname, serviceMode: 'paas', baseDir: '../', proxy });