vue-vben-admin/apps/web-antd/vite.config.mts
vertoryao 851794c127 refactor(@vben/web-antd): 优化页面布局和功能
- 更新 API 地址
- 优化 PPT 和 Word 页面布局
- 添加项目名称必填验证
-修复文档生成后的处理逻辑
- 优化气泡列表组件属性
2025-05-12 15:39:43 +08:00

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