Files
SaaS-lib/hx-ai-intelligent/vite.config.ts

21 lines
612 B
TypeScript
Raw Normal View History

2024-05-21 16:42:16 +08:00
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,
},
2024-05-28 10:51:13 +08:00
'/carbon-smart': {
2024-06-14 18:27:07 +08:00
target: 'http://192.168.112.144:8224',
2024-05-28 10:51:13 +08:00
changeOrigin: true,
2024-05-28 14:48:37 +08:00
rewrite: (path) => path.replace(/^\/carbon-smart/, ''),
2024-05-28 10:51:13 +08:00
},
2024-05-21 16:42:16 +08:00
};
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });