/** * 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(/\/+$/, ""); }