API Connection Debug
Environment Variables
NEXT_PUBLIC_API_URL: Loading... NEXT_PUBLIC_ADMIN_KEY: Loa******* (masked)
Test API Connection
Fix Steps
- Make sure your .env.local file contains the correct API URL:
NEXT_PUBLIC_API_URL=https://render-backend.onrender.com
- Ensure the backend server is running and accessible
- Check if CORS is enabled on the backend to allow requests from this origin
- Try a direct API call in the browser to Loading.../healthz
- If using a local backend, ensure it's running on the expected port
Backend Status Check
The backend service might be in a sleep state if it's on Render's free tier.
Wake Up BackendCheck Health Endpoint