resend / react-email

💌 Build and send emails using React
https://react.email
MIT License
12.57k stars 571 forks source link

Using Resend in production #1421

Closed AliReza1083 closed 2 weeks ago

AliReza1083 commented 4 weeks ago

Describe the Bug

I am trying to send email through API router in Next.js.

It is working fine in localhost but not in production. I am also using ngrok, it is working fine there but not in the real production.

This is the error I get:

image

Which package is affected (leave empty if unsure)

No response

Link to the code that reproduces this issue

https://github.com/AliReza1083/Portfolio/blob/main/app/api/comment-email/route.ts

To Reproduce

I don't know how to reproduce the bug but you can use API route and send email but try it on production.

Expected Behavior

I expect it to send email in production.

What's your node version? (if relevant)

Latest

AliReza1083 commented 2 weeks ago

I had to use the latest version of @react-email/component

gabrielmfern commented 2 weeks ago

His issue was that it was timing out due to using the older, slower version of @react-email/tailwind.