Spaces:
Sleeping
Sleeping
| /* ──────────────────────────────────────────────────────────────────────────── | |
| FALSIFY frontend runtime config. | |
| Where does the browser send API + SSE requests? | |
| • Hugging Face Spaces (monolith): leave this EMPTY. The frontend is served by | |
| the same FastAPI process, so same-origin ("") is correct. | |
| • Vercel + Render split: set this to your Render backend URL, e.g. | |
| window.__API_BASE__ = "https://falsify-backend.onrender.com"; | |
| The browser then calls the API and opens the SSE stream directly against | |
| Render (CORS is enabled server-side for this). Do NOT add a trailing slash. | |
| ──────────────────────────────────────────────────────────────────────────── */ | |
| window.__API_BASE__ = ""; | |