Skip to content

Commit e277f9a

Browse files
committed
chore: update environment configuration and deployment scripts
- Modified .env.production to include local development settings for WebSocket and API proxy. - Updated .gitignore to remove unnecessary entries. - Changed package.json to remove the React version requirement. - Updated GitHub Actions workflow to use Bun for dependency installation and project build.
1 parent 8e52c31 commit e277f9a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.env.production

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# 生产环境示例:请替换为你的网关域名。
2-
# WebSocket 由 Netty 提供(路径无 /api);网关需将 /api/ws 转发到 Netty 的 /ws 并指向 websocket 端口。
3-
VITE_WS_URL=wss://your-gateway-domain/api/ws/syndra
1+
VITE_DEV_SERVER_PORT=8000
2+
VITE_API_PROXY_TARGET=http://localhost:9527
3+
# Netty WebSocket 端口(与后端 application.yml websocket.netty.port 一致;/api/ws 会 rewrite 到 /ws)
4+
VITE_WS_PROXY_TARGET=http://localhost:8891
5+
# 通过前端开发服务器:/api/ws 由 vite 转发到 Netty,其余 /api 仍走 Spring
6+
VITE_WS_URL=ws://localhost:8000/api/ws/syndra
47
VITE_ENABLE_MONITOR_CONSOLE=true

0 commit comments

Comments
 (0)