Skip to content

API Connection Debug

Environment Variables

NEXT_PUBLIC_API_URL: Loading...
NEXT_PUBLIC_ADMIN_KEY: Loa******* (masked)

Test API Connection

Fix Steps

  1. Make sure your .env.local file contains the correct API URL:
    NEXT_PUBLIC_API_URL=https://render-backend.onrender.com
  2. Ensure the backend server is running and accessible
  3. Check if CORS is enabled on the backend to allow requests from this origin
  4. Try a direct API call in the browser to Loading.../healthz
  5. 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