Files
frontend-helper/src/lib/env.ts
T

18 lines
541 B
TypeScript

// Minnect host base URLs. Defaults match the build contract (docs spec, "Hosts").
// Override per environment in .env.local (gitignored). Never put tokens here.
function baseUrl(value: string | undefined, fallback: string): string {
const v = (value ?? "").trim();
return (v || fallback).replace(/\/+$/, "");
}
export const PROFILES_BASE_URL = baseUrl(
process.env.PROFILES_BASE_URL,
"https://profiles.minnect.com",
);
export const FEED_BASE_URL = baseUrl(
process.env.FEED_BASE_URL,
"https://feed.sharedservices.vt.com",
);