You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Something really weird is happening in my next api route.
If I use the following code I get a 404 like the route doesn't even exist, no console log is printed, no error is thrown, it's like if I was not calling the correct endpoint.
BUT if I put comment the sendMail part like the following I get a perfect 200 and so console logs are printed, if I put error voluntary it's thrown and printed.
Describe the bug
Something really weird is happening in my next api route.
If I use the following code I get a
404
like the route doesn't even exist, no console log is printed, no error is thrown, it's like if I was not calling the correct endpoint.BUT if I put comment the
sendMail
part like the following I get a perfect 200 and so console logs are printed, if I put error voluntary it's thrown and printed.What in the hell, in the
buildSendMail
function cause my next api route to 404? Is that a NextJS thing?Feel free to ask any additional information if needed.
Versions
nextjs 14.2.4
mailing-core 1.1.0
nodemailer 6.9.14
react 18.3.1
The text was updated successfully, but these errors were encountered: