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.
TypeScript
at incident-api
1234567891011121314151617181920212223// Test double for @openstatus/emails, swapped in via --import-map: records the// incident commander email instead of calling Resend; everything else is real.import { sendIncidentCommander as realSendIncidentCommander } from "@openstatus/emails-real";
export * from "@openstatus/emails-real";
type IncidentCommanderEmail = Parameters<typeof realSendIncidentCommander>[0];
const g = globalThis as { __incidentCommanderEmails?: IncidentCommanderEmail[];};if (!g.__incidentCommanderEmails) g.__incidentCommanderEmails = [];
export const incidentCommanderEmails: IncidentCommanderEmail[] = g.__incidentCommanderEmails;
export function sendIncidentCommander( req: IncidentCommanderEmail,): Promise<void> { incidentCommanderEmails.push(req); return Promise.resolve();}