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.
|
|
|
import configFun from '../build/vite-default.config';
|
|
|
|
const dirname = __dirname;
|
|
|
|
const proxy = {
|
|
|
|
'/qa': {
|
|
|
|
target: 'http://100.86.13.179:8080/qa',
|
|
|
|
// target: 'http://100.86.13.206:8081/qa',
|
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: (path) => path.replace(/^\/qa/, ''),
|
|
|
|
},
|
|
|
|
'/carbon_emission': {
|
|
|
|
target: 'http://140.210.143.1:14492',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
'/carbon-smart': {
|
|
|
|
target: 'http://123.60.103.97:8224',
|
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: (path) => path.replace(/^\/carbon-smart/, ''),
|
|
|
|
},
|
|
|
|
'/carbon': {
|
|
|
|
target: 'http://192.168.11.169:8224',
|
|
|
|
changeOrigin: true
|
|
|
|
},
|
|
|
|
};
|
|
|
|
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });
|