Next.js Discord

Discord Forum

Deployment issues with next js 14.2

Unanswered
HØŇĚ¥ posted this in #help-forum
Open in Discord
Avatar
I have deployed my application in vercel where my get routes are working fine and my post routes are throwing a 405 error. What could be the reason.

3 Replies

Avatar
@HØŇĚ¥ I have deployed my application in vercel where my get routes are working fine and my post routes are throwing a 405 error. What could be the reason.
Avatar
one reason could be a misconfigured route. You might want to provide your code and folder structure
Avatar
It is working fine in the localhost I have just changed the uri part
Original message was deleted
Avatar
Basically I have developed an application using Next Js and I have tested the application in my system on the localhost then the application worked really well. So I deployed this application to vercel then I tried to consume those APIs all the get APIs are working really fine but the post APIs are not working they are returning 405 status which is Bad request