Next.js Discord

Discord Forum

Locally the function runs and well, but on preview and production I get a 405 error code

Mugger Crocodile posted this in #help-forum
Open in Discord
Mugger CrocodileOP
- Its hard to debug since locally the code works but when I push it to vercel preview and production, the function call results in a 405 error on the page and the router does not push to the specified path

2 Replies

Acorn-plum gall
Did you ever figure this out? I'm finding myself in a similar predicament \
Golden paper wasp
This 405 stuff is a disaster. I am in the same boat. 12 hours into researching. Works locally, doesn't work in production.