rag-frontend/apps/web-antd/vite.config.ts
向宁 49d8abf933 feat: add AI chat, knowledge base, workflow pages
- AI chat page with SSE streaming
- Knowledge base management with chunk/vector preview
- Workflow definition list page
- Chunked file upload (>5MB auto-slicing)
- Removed demo menus
- Added file request client proxy config
2026-05-20 20:28:24 +08:00

41 lines
1.1 KiB
TypeScript

import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
proxy: {
'/api': {
changeOrigin: true,
target: 'http://localhost:5211',
ws: true,
},
'/file-api': {
changeOrigin: true,
target: 'http://localhost:8080',
rewrite: (path) => path.replace(/^\/file-api/, ''),
},
'/im-api': {
changeOrigin: true,
target: 'http://localhost:5212',
rewrite: (path) => path.replace(/^\/im-api/, '/api'),
ws: true,
},
'/im-signalr': {
changeOrigin: true,
target: 'http://localhost:5212',
rewrite: (path) => path.replace(/^\/im-signalr/, ''),
ws: true,
},
'/workflow-api': {
changeOrigin: true,
target: 'http://localhost:5213',
rewrite: (path) => path.replace(/^\/workflow-api/, ''),
},
},
},
},
};
});