I have created a mern web app with vite, when I try to deploy it the website is shown correctly but the api is not working, if I try to make calls from the frontend I get a 404 error. I've tried both to deploy the full app in one single project and to deploy the api in one project and the frontend on another.