Resend gives 405 on production, I cant fix the problem?

For Workers & Pages, what is the name of the domain?

What is the error number?

405

What is the error message?

405 Method Not Allowed

What is the issue or error you’re encountering

I want to create a contact us form, and when users press “Send” I want to receive emails with resend to my support email. My website is written on next.js and I followed resend tutorial for nextjs. It worked without any problems on localhost, but when I deployed it on production it gives me 405

What steps have you taken to resolve the issue?

I followed this tutorial Next.js - Resend

What are the steps to reproduce the issue?

Try to fill the form Travenue and press “Send” button

Screenshot of the error

Hi there,

Seems to be resolved now:

Glad you got it working.

Take care.

Yes, I created another worker. I wanted to create a function on the page but it didnt work. Imo more detailed tutorials are needed

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.