- Fixed fallback to use api.turbotrades.dev instead of window.location.host
- Added console logging to debug WebSocket URL resolution
- Simplified fallback logic - always use API URL domain
- This fixes ws.turbotrades.dev connection errors
- Added websocket.url to backend config
- Updated /api/config/public endpoint to return WebSocket URL
- Frontend now fetches WS URL from backend config API
- Falls back to environment variable or auto-generated URL
- Add WS_URL to backend .env: wss://api.turbotrades.dev/ws
- Updated WebSocket URL to use api.turbotrades.dev instead of ws.turbotrades.dev
- Added frontend .env.production with correct VITE_WS_URL
- Added frontend .env.development for local development
- WebSocket now connects to wss://api.turbotrades.dev/ws