File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { adminAuth, adminDb } from "@/lib/firebase/admin";
33import { Resend } from "resend" ;
44import { Timestamp } from "firebase-admin/firestore" ;
55
6- const resend = new Resend ( process . env . RESEND_API_KEY ) ;
76const APP_URL = process . env . NEXT_PUBLIC_APP_URL ?? "http://localhost:3000" ;
87const isDev = process . env . NODE_ENV === "development" ;
98
@@ -14,6 +13,7 @@ async function sendInviteEmail(to: string, signupLink: string) {
1413 console . log ( ` Link: ${ signupLink } \n` ) ;
1514 return ;
1615 }
16+ const resend = new Resend ( process . env . RESEND_API_KEY ) ;
1717 await resend . emails . send ( {
1818 from : "AppDev Alumni <noreply@alumni.cornellappdev.com>" ,
1919 to,
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { adminAuth, adminDb } from "@/lib/firebase/admin";
33import { Resend } from "resend" ;
44import { Timestamp } from "firebase-admin/firestore" ;
55
6- const resend = new Resend ( process . env . RESEND_API_KEY ) ;
76const APP_URL = process . env . NEXT_PUBLIC_APP_URL ?? "http://localhost:3000" ;
87const isDev = process . env . NODE_ENV === "development" ;
98
@@ -22,6 +21,7 @@ async function sendPostNotifications(
2221 return ;
2322 }
2423
24+ const resend = new Resend ( process . env . RESEND_API_KEY ) ;
2525 await resend . batch . send (
2626 subscribers . map ( ( u ) => ( {
2727 from : "AppDev Alumni <noreply@alumni.cornellappdev.com>" ,
You can’t perform that action at this time.
0 commit comments