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
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
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](https://cdn.discordapp.com/attachments/1166228683284037714/1166228683862847518/Screenshot_2023-10-24_at_07.14.28.png?ex=6549ba19&is=65374519&hm=4c3e5e3d427ab731f50c5f88187cb28d65f096c68eee7b87618744f0207d334a&)
2 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Acorn-plum gall
Did you ever figure this out? I'm finding myself in a similar predicament \
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
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.