Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. 馃珫 Status page with uptime monitoring & API monitoring as code 馃珫 openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
310 B 路 15 lines
TypeScript
12345678910111213141516export function getBaseUrl({ slug, customDomain,}: { slug?: string; customDomain?: string;}) { if (process.env.NODE_ENV === "development") { return `http://localhost:3000/${slug}`; } if (customDomain) { return `https://${customDomain}`; } return `https://${slug}.openstatus.dev`;}