Deployment succeeds but all routes return 404

Deployment succeeds but all routes return 404
Hello,
My project, hlomo (hlomo.vercel.app), is deploying successfully, but all routes are returning a 404 Not Found error.
I have confirmed the following:
My file structure is standard, with static files in a /public directory and an Express server at /api/index.js.
All necessary environment variables are set for the Production environment.
The Framework Preset is “Other” with default build settings and an empty Root Directory.
We have tried multiple vercel.json configurations (including a simple API rewrite and deleting the file entirely), but the 404 issue persists for both static files and API routes.
A minimal test function at /api/test.js deployed and worked correctly, but the main Express server at /api/index.js seems to not be receiving any traffic.
Could you please check the internal routing and build output configuration for my project to see why it’s failing to serve any files after a successful deployment?
Thank you.uestions that get answered the fastest are the ones with relevant info included in the original post. Be sure to include all detail needed to let others see and understand the problem!

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.

If you’re having trouble deploying an Express app, this guide can help.

You can also ask v0 for suggestions tailored to your own project setup.

1 Like

Hi @spacecreate, welcome to the Vercel Community!

Were you able to solve this or do you still need help? If you need more help, please share your public repo or a minimal reproducible example. That will let us all work together from the same code to figure out what’s going wrong.

1 Like