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.
123456789101112131415const SITE_URL = "https://www.openstatus.dev";
// Markdown leaves the site, so frontmatter links are absolute.export function canonicalUrl(pathOrUrl: string) { return /^https?:\/\//.test(pathOrUrl) ? pathOrUrl : `${SITE_URL}${pathOrUrl}`;}
// JSON strings are valid double-quoted YAML scalars, quotes included.export function frontmatter(fields: Record<string, string | undefined>) { const lines = Object.entries(fields) .filter((entry): entry is [string, string] => entry[1] != null) .map(([key, value]) => `${key}: ${JSON.stringify(value)}`); return `---\n${lines.join("\n")}\n---\n\n`;}