File size: 353 Bytes
30cc31a
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
/**
 * 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(/\/+$/, "");
}