fix(email): fallback to onboarding@resend.dev until custom domain verified in Resend

This commit is contained in:
Manohar Gupta 2026-05-24 15:18:41 +05:30
parent e2a3e83638
commit 8a3da6a5a6

View file

@ -1,7 +1,8 @@
import { Resend } from "resend";
const RESEND_API_KEY = process.env.RESEND_API_KEY;
const EMAIL_FROM = process.env.EMAIL_FROM || "Tia <noreply@tia.manohargupta.com>";
// Falls back to Resend's shared test domain if EMAIL_FROM env var not set or domain not verified yet
const EMAIL_FROM = process.env.EMAIL_FROM || "Tia <onboarding@resend.dev>";
const APP_URL = process.env.NEXT_PUBLIC_APP_URL || "https://tia.manohargupta.com";
/** Sends a family invite email, or logs the link in dev. */