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.
 
 
 
 
 
 

27 lines
1.1 KiB

/** @format */
import configFun from '../build/vite-default.config';
const dirname = __dirname;
const proxy = {
'/api/screen': {
target: 'http://100.68.3.31:8092',
changeOrigin: true,
rewrite: (path: any) => path.replace(/^\/api\/screen/, ''),
},
//'/api': { target: 'http://100.86.30.154:8080', changeOrigin: true }, //开发环境 admin
// '/api': { target: 'http://100.86.30.67:8081', changeOrigin: true }, //测试环境
'/api': { target: 'http://100.86.30.28', changeOrigin: true }, //开发环境 admin
// '/api': { target: 'http://100.68.3.31:8092', changeOrigin: true }, //开发环境 admin
// '/api/screen': {
// target: 'http://100.86.13.167:8092/api',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api\/screen/, ''),
// },
// '/assets/fonts': {
// target: 'http://portal.cloud.datastudio.dingcloud.com:30080/assets/fonts',
// changeOrigin: true,
// rewrite: (path: any) => path.replace(/^\/assets\/fonts/, ''),
// },
};
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });