Refactor API configuration and improve WebSocket handling in frontend and backend

This commit is contained in:
M1ngdaXie
2026-02-03 17:25:11 -08:00
parent 35c4aa2580
commit 70a406c73c
14 changed files with 335 additions and 131 deletions

View File

@@ -1,10 +1,15 @@
# Frontend Environment Variables
# Copy this file to .env.local for local development
# API Configuration
# Backend API base URL (must include /api path)
# ===================
# API CONFIGURATION
# ===================
# Backend API URL (must include /api path)
# Default for development: http://localhost:8080/api
VITE_API_URL=http://localhost:8080/api
# WebSocket Configuration
# WebSocket server URL for real-time collaboration (must include /ws path)
# WebSocket URL (must include /ws path)
# Default for development: ws://localhost:8080/ws
# Use wss:// for production (secure WebSocket)
VITE_WS_URL=ws://localhost:8080/ws