File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11// Add debugging at the top to see all environment variables
22console . log ( "[DEBUG] Environment mode:" , import . meta. env . MODE ) ;
33console . log ( "[DEBUG] All environment variables:" , import . meta. env ) ;
4- console . log ( "[DEBUG] VITE_API_BASE specifically:" , import . meta. env . VITE_API_BASE ) ;
4+ console . log ( "[DEBUG] VITE_API_BASE_URL specifically:" , import . meta. env . VITE_API_BASE_URL ) ;
55
6- // FIXED: Removed the incorrect prefix from fallback URL
7- const API_BASE_URL = import . meta. env . VITE_API_BASE_URL || "https://veto-webapp-production.up.railway.app/api" ;
6+ // FIXED: Use VITE_API_BASE_URL (matching .env.production) with correct fallback
7+ const API_BASE = import . meta. env . VITE_API_BASE_URL || "https://veto-webapp-production.up.railway.app/api" ;
88
99console . log ( "[DEBUG] Final API_BASE value:" , API_BASE ) ;
1010
You can’t perform that action at this time.
0 commit comments