Download web/config.js from devadit15/rubriq: direct link, hf CLI and curl.
- Browser
- Download file 633 Bytes
-
https://huggingface.co/spaces/devadit15/rubriq/resolve/main/web/config.js
- Command line
-
hf download hf://spaces/devadit15/rubriq/web/config.js
-
curl -L -o config.js https://huggingface.co/spaces/devadit15/rubriq/resolve/main/web/config.js
633 Bytes
| // API base URL resolution, in priority order: | |
| // 1. ?api=https://... query param (ad-hoc override, persisted to localStorage) | |
| // 2. localStorage "rubriq_api" | |
| // 3. window.RUBRIQ_API set below (deployment default) | |
| // 4. same origin (local dev: uvicorn serves both UI and API) | |
| window.RUBRIQ_API = window.RUBRIQ_API | |
| || (location.hostname.endsWith("hf.space") || location.hostname === "localhost" || location.hostname === "127.0.0.1" | |
| ? "" // served by the engine itself: same origin | |
| : "https://devadit15-rubriq.hf.space"); // static hosting (Vercel): the HF Space engine | |