26 lines
623 B
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,
// 代理到 .NET 后端 BuildFlow.Host
target: 'http://localhost:5667',
ws: true,
},
// SignalR Hub(聊天实时通信):与 /api 同后端,WebSocket 升级需 ws:true
'/hubs': {
changeOrigin: true,
target: 'http://localhost:5667',
ws: true,
},
},
},
},
};
});