Next.js Discord

Discord Forum

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

Unanswered
Mugger Crocodile posted this in #help-forum
Open in Discord
Avatar
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
Image

2 Replies

Avatar
Acorn-plum gall
Did you ever figure this out? I'm finding myself in a similar predicament \
Avatar
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.