Spaces:
Sleeping
Sleeping
File size: 1,030 Bytes
1605cbb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | /* ────────────────────────────────────────────────────────────────────────────
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__ = "";
|