Add Resend mailer as primary with SMTP fallback for reliable email delivery

This commit is contained in:
openhands committed 2026-07-07 20:12:56 +02:00
1 parent f386ae2b25
commit bf4075233d
4 files changed
+75 -15

No files matched your search

+2
View File
@@ -11,6 +11,8 @@ const schema = z.object({
DATABASE_CONNECT_TIMEOUT_MS: z.coerce.number().int().positive().default(10_000),
HOTEL_NAME: z.string().default("Atom"),
APP_URL: z.string().url().default("http://localhost:3000"),
// Resend API key (preferred — simpler HTTP API, always works).
RESEND_API_KEY: z.string().optional(),
// SMTP (password reset / notifications). Email features no-op if unset.
SMTP_HOST: z.string().optional(),
SMTP_PORT: z.coerce.number().int().positive().optional(),