Skip to content

Commit 1bbea03

Browse files
committed
Fix build
1 parent dfad803 commit 1bbea03

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/api/invitations/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { adminAuth, adminDb } from "@/lib/firebase/admin";
33
import { Resend } from "resend";
44
import { Timestamp } from "firebase-admin/firestore";
55

6-
const resend = new Resend(process.env.RESEND_API_KEY);
76
const APP_URL = process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000";
87
const 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,

app/api/posts/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { adminAuth, adminDb } from "@/lib/firebase/admin";
33
import { Resend } from "resend";
44
import { Timestamp } from "firebase-admin/firestore";
55

6-
const resend = new Resend(process.env.RESEND_API_KEY);
76
const APP_URL = process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000";
87
const 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>",

0 commit comments

Comments
 (0)