vue-vben-admin/apps/web-antd/vite.config.mts
Kven e4745ae789 feat(@vben/common-ui): 优化文档处理功能
- 添加 markdown 解析功能
- 优化文档预览和工作视图组件
- 添加文档生成相关功能
- 修复一些与文档处理相关的问题
2025-05-12 19:52:53 +08:00

40 lines
1.2 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',
// target: 'http://192.168.3.238:8081/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',
// target: 'http://192.168.3.238:8081/v1',
},
},
},
},
};
});