so am making a post req using body-parse in getting my data for my api am using axios to handle it.
It works on localhost but when i deploy on vercel it returns a 404 page not found after hiting the submit button.
Am having a little suspicion it from my vercel.json file i dont know, is there any way of handle such in vercel?
{
"version": 2,
"builds": [
{
"src": "./index.js",
"use": "@vercel/node"
}
],
"rewrites": [{ "source": "/(.*)", "destination": "/get-weather" }]
}
i added “rewrites”: [{ “source”: “/(.*)”, “destination”: “/get-weather” }] which I don’t get all ???? please help out
Maduanusi Victor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.