iot-manage-dashboard/apps/web-tdesign/vite.config.mts
2025-11-11 17:40:08 +08:00

22 lines
499 B
TypeScript

import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
proxy: {
'/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
// mock代理目标地址
target: 'https://bm4289e5zy-7901.cnb.run/api',
ws: true,
},
},
allowedHosts: ['ixpgm1rtma-6000.cnb.run']
},
},
};
});