rag-frontend/apps/web-antd/vite.config.ts
向宁 33de6f1220 feat: add notification store, order/portal pages, form designer runtime and utils
- Add notification API + store, OIDC callback view
- Add order management and portal route modules
- Add form designer preview/linkage, runtime rendering and versions
- Add file utils, message utils and unit tests
- Wire up workflow routes and knowledge-base/im/file views
2026-06-14 15:02:32 +08:00

59 lines
1.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from '@vben/vite-config';
export default defineConfig(async () => {
return {
application: {},
vite: {
server: {
proxy: {
'/api': {
changeOrigin: true,
target: 'http://localhost:5211',
ws: true,
},
// 消息中心通知 HubSignalR 实时推送,前端铃铛)
'/notifications-hub': {
changeOrigin: true,
target: 'http://localhost:5211',
rewrite: (path) => path.replace(/^\/notifications-hub/, ''),
ws: true,
},
'/file-api': {
changeOrigin: true,
target: 'http://localhost:8090',
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/, ''),
},
'/order-api': {
changeOrigin: true,
target: 'http://localhost:5214',
rewrite: (path) => path.replace(/^\/order-api/, ''),
},
'/sso': {
// SSO 服务OpenIddict OIDC Provider端口 5215
changeOrigin: true,
target: 'http://localhost:5215',
rewrite: (path) => path.replace(/^\/sso/, ''),
},
},
},
},
};
});