Fix WebSocket connection - use main API domain instead of ws subdomain
All checks were successful
Build Frontend / Build Frontend (push) Successful in 9s
All checks were successful
Build Frontend / Build Frontend (push) Successful in 9s
- 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
This commit is contained in:
16
frontend/.env.production
Normal file
16
frontend/.env.production
Normal file
@@ -0,0 +1,16 @@
|
||||
# Production Environment Variables for Frontend
|
||||
# These are embedded at build time by Vite
|
||||
|
||||
# API URL - Backend API endpoint
|
||||
VITE_API_URL=https://api.turbotrades.dev
|
||||
|
||||
# WebSocket URL - Backend WebSocket endpoint
|
||||
# If not set, will auto-generate from VITE_API_URL
|
||||
VITE_WS_URL=wss://api.turbotrades.dev/ws
|
||||
|
||||
# App Configuration
|
||||
VITE_APP_NAME=TurboTrades
|
||||
VITE_APP_ENV=production
|
||||
|
||||
# Feature Flags
|
||||
VITE_ENABLE_DEBUG=false
|
||||
Reference in New Issue
Block a user