Error 405 Method Not Allowed
Unanswered
Red wasp posted this in #help-forum
Red waspOP
Hi, i'm deploying on my own VPS with Docker...
I have a
It contains two methods : GET and PUT, both works in local, but PUT does not work in production.
I tried to move the PUT handler in another file. The same issue happens. I also tried to swap the PUT for a POST, same error.
Do you guys have any idea on how to solve it?
More details here : https://stackoverflow.com/questions/79619124/get-and-put-produces-405-method-not-allowed-on-nextjs-15
I have a
route.ts
file in /src/app/api/import-batch/[id]/route.ts
It contains two methods : GET and PUT, both works in local, but PUT does not work in production.
I tried to move the PUT handler in another file. The same issue happens. I also tried to swap the PUT for a POST, same error.
Do you guys have any idea on how to solve it?
More details here : https://stackoverflow.com/questions/79619124/get-and-put-produces-405-method-not-allowed-on-nextjs-15