10 lines
494 B
TypeScript
10 lines
494 B
TypeScript
import { Resend } from "resend"
|
|||
|
|
|
||
|
|
// Use a placeholder when no key is configured so the constructor doesn't throw
|
||
|
|
// at module load (it's imported on the auth path). Sends will fail gracefully
|
||
|
|
// and are caught in sendEmail().
|
||
|
|
export const resend = new Resend(process.env.RESEND_API_KEY || "re_placeholder")
|
||
|
|
|
||
|
|
export const FROM_EMAIL = process.env.RESEND_FROM_EMAIL ?? "noreply@propertymanagement.network"
|
||
|
|
export const APP_NAME = process.env.NEXT_PUBLIC_APP_NAME ?? "Property Management Network"
|