Using Resend in production
AliReza1083 opened this issue · comments
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](https://private-user-images.githubusercontent.com/99729607/324200039-79a38b19-45dc-4133-a42b-74b3b517a9d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2OTg2NTYsIm5iZiI6MTcyMzY5ODM1NiwicGF0aCI6Ii85OTcyOTYwNy8zMjQyMDAwMzktNzlhMzhiMTktNDVkYy00MTMzLWE0MmItNzRiM2I1MTdhOWQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA1MDU1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5ZGVmZWJhNDNlNjA5YTMwYTc1ZDFmZjAwNmRmNTY5MzVkMDQwNDVhMzNlN2ZjODFmNDBhZDRhMzZiM2Y5NjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SZ_MQKvdq5nbOvHB7ZC2ab9BPg1M9bX_lVBmydHqEc4)
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
I had to use the latest version of @react-email/component
His issue was that it was timing out due to using the older, slower version of @react-email/tailwind
.