Falsify / static /config.js
Aaryan Kumar
deploy to hugging face
1605cbb
Raw
History Blame Contribute Delete
1.03 kB
/* ────────────────────────────────────────────────────────────────────────────
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__ = "";