Next.js Discord

Discord Forum

Resend timeout in vercel

Answered
Waterman posted this in #help-forum
Open in Discord
Avatar
Hello, in dev this works fine, it is making its way through the code without any errors and also console.log the time it takes for allt he operations, they are about 50 ms in total,
later in the code I am awaiting an email to send but for some reason it just doesn't seem to be sending the email or taking really long time, here is what that code looks like:

await resend.emails.send({
              from: "Freshburst UF <info@freshburstuf.se>",
              to: [order?.epostaddress],
              subject: "Freshburst UF - Orderbekräftelse",
              react: EmailTemplate({
                fornamn: order.fornamn,
                products: order.products,
                total: order.total,
              }),
            } as any);


Does anyone know how this is possible to take this long, I haven't had this issue before with resend
Answered by Waterman
SOLUTION,

the problem was just that I had to update both @Pond loach-email/components and @Pond loach-email/render to the latest versions!
View full answer

7 Replies

Avatar
Image
Avatar
Northern Wheatear
I'm not sure what is causing the execution to take this much time but you can extend the timeout limit
Avatar
okay thanks, I got this answer from resend support but they havn't answered back again after my message:
Image
I think it is just an infinite time it would take because of some error not causing an actual error?
if someone has an idea that would be amazing
Avatar
SOLUTION,

the problem was just that I had to update both @Pond loach-email/components and @Pond loach-email/render to the latest versions!
Answer