feat: 补充新项目hx-op

This commit is contained in:
xuziqiang
2024-06-07 15:11:04 +08:00
parent a0f5c4de08
commit fc940e7241
64 changed files with 28632 additions and 7 deletions

20
hx-op/vite.config.ts Normal file
View File

@@ -0,0 +1,20 @@
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://192.168.112.144:8224',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/carbon-smart/, ''),
},
};
export default configFun({ dirname, proxy, serviceMode: 'saas', baseDir: '../' });