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.
19 lines
603 B
19 lines
603 B
import configFun from '../build/vite-default.config';
|
|
const dirname = __dirname;
|
|
const proxy = {
|
|
'/api/slb': {
|
|
target: 'http://100.86.226.6:30573',
|
|
changeOrigin: true,
|
|
rewrite: (path: any) => path.replace(/^\/api\/slb/, '/api'),
|
|
},
|
|
'/api': {
|
|
target: 'http://portal.cloud.sh.dingcloud.com:30080',
|
|
changeOrigin: true,
|
|
},
|
|
'/api/dns': {
|
|
target: 'http://portal.cloud.sh.dingcloud.com:30080',
|
|
changeOrigin: true,
|
|
// rewrite: (path) => path.replace(/^\/api\/dns/, '/api/dns'),
|
|
},
|
|
};
|
|
export default configFun({ dirname, serviceMode: 'paas', baseDir: '../', proxy });
|
|
|