vue-vben-admin/apps/web-antd/vite.config.mts
Kven e39433e49c feat(@vben/web-antd): 集成 Ant Design 组件库
- 在项目中引入 Antd 组件库和样式
- 优化聊天流接口调用,支持获取聊天列表
- 新增 PPT模板生成相关功能和界面- 调整静态资源代理配置,支持 PPT 文件加载
2025-05-04 22:39:29 +08:00

34 lines
848 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: 'http://localhost:8081/api',
ws: true,
},
'/v1': {
target: 'http://localhost:8081/v1',
rewrite: (path) => path.replace(/^\/v1/, ''),
changeOrigin: true,
},
'/static': {
target: 'http://47.112.173.8:6802',
changeOrigin: true,
},
'/static/*.docx': {
target: 'http://47.112.173.8:6805',
changeOrigin: true,
},
},
},
},
};
});