Rest api not working

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.

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

1 Like

Hey @tk-pj06. You can use the that debugging guide linked above to solve most 404 problems.

If you need more help, you should tell us more about your project. Your original post doesn’t have much info about which page or resource throws the error, what you have already tried, or how someone else can see the error and help you investigate. You’re more likely to get helpful suggestions from the community if you include those details. :slightly_smiling_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.