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.
752 B ยท 26 lines
TSX
at main
123456789101112131415161718192021222324252627/** @jsxRuntime automatic @jsxImportSource react */
import IncidentCommanderEmail, { type IncidentCommanderProps, incidentCommanderSubject,} from "../emails/incident-commander";import { sendEmail } from "./send";
const SYSTEM_FROM = "openstatus <notifications@notifications.openstatus.dev>";const SUPPORT_EMAIL = "ping@openstatus.dev";
export async function sendIncidentCommander( req: IncidentCommanderProps & { to: string; idempotencyKey?: string },) { const { to, idempotencyKey, ...props } = req; return sendEmail( { from: SYSTEM_FROM, reply_to: SUPPORT_EMAIL, to: [to], subject: incidentCommanderSubject(props), react: <IncidentCommanderEmail {...props} />, }, { idempotencyKey }, );}