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
484 B
17 lines
484 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': {
|
|
target: 'http://portal.op.sh.dingcloud.com:30080',
|
|
changeOrigin: true,
|
|
},
|
|
};
|
|
export default configFun({ dirname, serviceMode: 'paas', baseDir: '../', proxy });
|
|
|