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.
18 lines
484 B
18 lines
484 B
11 months ago
|
/** @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 });
|