Download src/lib/env.ts from meljendy/proteinea: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/meljendy/proteinea/resolve/main/src/lib/env.ts
- Command line
-
hf download hf://spaces/meljendy/proteinea/src/lib/env.ts
-
curl -L -o env.ts https://huggingface.co/spaces/meljendy/proteinea/resolve/main/src/lib/env.ts
353 Bytes
| /** | |
| * Runtime env helpers. Server-side only — do not import from client components. | |
| */ | |
| /** Base URL for the Phylo backend (FastAPI). Server-side. */ | |
| export function phyloBackendUrl(): string { | |
| const raw = process.env.PHYLO_BACKEND_URL; | |
| const base = raw && raw.trim() ? raw.trim() : "http://localhost:8000"; | |
| return base.replace(/\/+$/, ""); | |
| } | |