Skip to content

Commit 42dc85f

Browse files
author
Marcus
committed
check key
1 parent 99d0175 commit 42dc85f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/deploy-vercel.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ jobs:
2323
run: vercel pull --yes --environment=production --token ${{ secrets.VERCEL_TOKEN }}
2424

2525
- name: Deploy to Production
26-
run: vercel --prod --confirm --token ${{ secrets.VERCEL_TOKEN }}
26+
run: |
27+
vercel --prod --confirm \
28+
--token ${{ secrets.VERCEL_TOKEN }} \
29+
-e RESEND_API_KEY=${{ secrets.RESEND_API_KEY }}

app/api/contact/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { ContactEmail } from "@/app/components/ContactEmail";
22
import { NextResponse } from "next/server";
33
import { Resend } from "resend";
44

5-
const resend = new Resend(process.env.RESEND_API_KEY!);
6-
75
export async function POST(req: Request) {
6+
const resend = new Resend(process.env.RESEND_API_KEY!);
87
try {
98
const { firstName, lastName, email, message } = await req.json();
109

0 commit comments

Comments
 (0)