proteinea / src /lib /env.ts
Mahmoud Eljendy
feat: Antibody Studio — AI-native antibody design workspace by Proteinea
30cc31a
/**
* 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(/\/+$/, "");
}