fix(proxy): 更新预览端口并优化SSE和WS代理配置

- 将预览端口从5173改为8888以避免冲突
- 重构SSE代理配置,简化逻辑并修复连接问题
- 新增WS代理路径,支持WebSocket独立代理
This commit is contained in:
2025-09-21 23:36:23 +08:00
parent 30716686ed
commit 7637a5c225
2 changed files with 22 additions and 23 deletions

View File

@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview --port 5173"
"preview": "vite preview --port 8888"
},
"dependencies": {
"@ant-design/icons": "^5.4.0",