import { Resend } from "resend"; const resendApiKey = process.env.RESEND_API_KEY; export const resend = resendApiKey ? new Resend(resendApiKey) : null as unknown as Resend; // Will fail at runtime if not configured, but allows build