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
520 B

11 months ago
/** @format */
import configFun from '../build/vite-default.config';
const dirname = __dirname;
const proxy = {
'/api/work': {
target: 'http://100.86.226.6:8092',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/work/, '/api'),
},
'/api': { target: 'http://portal.op.sh.dingcloud.com:30080/', changeOrigin: true },
'/asset': { target: 'http://portal.op.dingcloud.com:30080/', changeOrigin: true },
};
export default configFun({ dirname, serviceMode: 'paas', baseDir: '../', proxy });