Hey I used cursor to build a website app, it works perfectly locally (I start frontend, backend, db separately), but when I deploy to Vercel it has many problems and the most significant is website 404
404: NOT_FOUND
Code: NOT_FOUND
ID: sfo1::p2r5r-1755826011067-ad735a6265a7
I’ve asked multiple AI models about this and made tons of changes but still no luck so far. The latest output screenshot:
and source screenshot:
Any ideas on what should be next? I think i tried to convert backend to serverless func but frontend→backend call also didn’t work..
system
(system)
August 22, 2025, 1:39am
2
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.
Sometimes things don’t go as expected when deploying a website. If you see a 404 on your site, that means the page or resource couldn’t be found.
There are many possible causes, and the absence of something can be tricky debug if you don’t know where to look. Here are some things you can do to find the cause and fix it.
Debugging Tips
Check the error code
If you see a mostly white screen with 404: NOT_FOUND along with a Code and and ID then you can click the blue info box below the error deta…
A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0 .
1 Like
Update: I’m now seeing frontend not found:
My vercel.json is
{
"version": 2,
"builds": [
{
"src": "frontend/package.json",
"use": "@vercel/static-build",
"config": {
"distDir": "dist",
"outputDirectory": "."
}
},
{
"src": "index.js",
"use": "@vercel/node"
}
],
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }],
"env": {
"NODE_ENV": "production"
}
}
And my directory is
So far I also tried to route to index.html successfully but it still fails to route to my landing page which is frontend/src/pages/landing.jsx..I’m frustrated now
amyegan
(Amy Egan)
August 22, 2025, 2:03pm
5
Are you using the monorepo setup recommended in the docs, or a different deployment structure?
system
(system)
Closed
November 20, 2025, 2:04pm
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.