Open immanuel-peter opened 2 months ago
Hi. The email sending code looks good to me. Have you checked the properties are correctly sent on the request body in your route handler?
Also, you should keep your resend API key secure. Environment variables that start with NEXT_PUBLIC_
are included in your code at build time.
I'm encountering a persistent
500 Internal Server Error
when attempting to send emails using the Resend API with a React email template in my Next.js project. I have tried various debugging methods but haven't been able to resolve the issue.Here are some relevant code snippets below, and the GitHub repo is down below.
app/api/send/route.ts
app/questions/[id]/route.tsx
api/email-templates/MeetingRequest.tsx
GitHub Repo: https://github.com/jesuschrist-immanuel/stack-overflow-clone/
The last time I tried to make it work, I got this error:
Error sending meeting request email: {"error":{}}
Any guidance or assistance in resolving this issue would be greatly appreciated!