fix(email): fallback to onboarding@resend.dev until custom domain verified in Resend
This commit is contained in:
parent
e2a3e83638
commit
8a3da6a5a6
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,8 @@
|
||||||
import { Resend } from "resend";
|
import { Resend } from "resend";
|
||||||
|
|
||||||
const RESEND_API_KEY = process.env.RESEND_API_KEY;
|
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";
|
const APP_URL = process.env.NEXT_PUBLIC_APP_URL || "https://tia.manohargupta.com";
|
||||||
|
|
||||||
/** Sends a family invite email, or logs the link in dev. */
|
/** Sends a family invite email, or logs the link in dev. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue