Openstatus
www.openstatus.dev
1export function getBaseUrl({
2 slug,
3 customDomain,
4}: {
5 slug?: string;
6 customDomain?: string;
7}) {
8 if (process.env.NODE_ENV === "development") {
9 return `http://localhost:3000/${slug}`;
10 }
11 if (customDomain) {
12 return `https://${customDomain}`;
13 }
14 return `https://${slug}.openstatus.dev`;
15}