DIAGNOSIS

My v0 app deployed but the buttons do nothing

The pages load, the design is right, and every server route says the page can't be found — here's the two-minute test that finds the cause before you change a line of code.

9 min read
ON THIS PAGE
SHORT ANSWER

Why do my v0 API routes say the page cannot be found?

Usually because the half of your app that does things never got built and published, even though the half that shows things did. The file is still in your project. Vercel decides where requests go using a map made at build time, so a request can be turned away before anything looks for your file.

Your app went live. The pages load. The design is exactly what you asked for. Then you click the button that saves a thing, or signs someone in, or sends the email — and nothing happens. A spinner that never stops, a red box, or silence.

If you type your site's address followed by /api/ and the name of whatever broke, you will probably see a short page saying the page could not be found. That is the message a server sends when it went looking for the thing you asked for and there was nothing there.

Here is the first thing worth knowing, because it changes how the next twenty minutes feel: this almost never means your code is missing. The file is in your project. v0 wrote it. It works when you test it inside v0. The two halves of the app get published by two different mechanisms, and one of them quietly didn't happen.

Vercel's own support documentation is blunt about this. A deployment marked "Ready" only confirms the build finished and the deployment exists — it does not confirm that requests actually reach anything.1 Which is why your file sitting right there, visible and correct, is not the comfort it feels like it should be.

What should I check before I change anything?

Three checks, in this order, and none of them touch your code. They tell you whether the problem is your build, your domain, or the platform itself.

  1. Try the automatic address
    Open your app at its long automatic .vercel.app address rather than your custom domain, and try the same broken thing. If it works there and fails on your real domain, the app is fine and the problem is in how the domain points at it. Vercel recommends this as the fastest first move, because people's instinct is to go hunting through files instead.1
  2. Open the Functions tab
    In your Vercel dashboard, open the project, open the most recent deployment, and find the Functions tab. That is the list of server-side pieces that actually got published. If it is empty, you have your answer: the working half of your app was never built.
  3. Watch the Runtime Logs
    Open the Runtime Logs for that deployment, then trigger the broken button again. Nothing in the logs means the request never reached your app. Something ugly in the logs means it did reach your app and your app fell over — a different problem with a different fix.

Someone debugging exactly this in Vercel's community forum described a build that completed successfully in 47 milliseconds, with the Functions tab completely empty and no logs of anything running.3 A 47-millisecond build is not a build. It is a build that found nothing to do.

47 ms3
Length of a "successful" build that produced no server-side pieces at all, reported in Vercel's community forum
Zero4
Log entries recorded for a project where every single path, including a plain image file, returned not-found

Why does this keep happening to v0 apps?

There are four usual causes, and three of them are settings rather than code. Work through them in order; the first one catches most v0 users.

The project is set to the wrong framework

In your Vercel project settings there is a Framework Preset, and it needs to say Next.js. If it says "Other", Vercel does not know what it is looking at, never builds the routing map, and turns away requests for things that plainly exist.

A v0 user reported exactly this in June 2025 — the preview inside v0 worked perfectly, the deployed version did not — and Vercel's own team narrowed it to the framework preset. A staff member in that thread said it should work out of the box and flagged it internally as a bug.2 If this is you, you did not do it. Set the preset and redeploy.

The app was built as a frozen site

There is a setting that tells Next.js to produce a server-free version of your site: every page pre-made, nothing running. Fine for a brochure site. It also strips every server-side route out of the build, because those need something running to answer them.

Sanity's documentation describes this as a classic deployment trap. It works on your own machine because local development always runs a real server, and fails once deployed because the route is simply not in what got shipped.7 If output: 'export' is in your Next.js config file, or a build step ends in next export, that is your culprit.

It isn't missing — it's crashing

In a long-running Next.js discussion, the person who opened it came back to report his routes had been fine all along: Vercel was turning an unhandled error on the server into a not-found page.5 Another developer confirmed the same in March 2024, where a missing setting was making the server fail at something that worked locally; fixing the real failure made the not-found page disappear on its own.

So "not found" can also mean "found it, ran it, it died." The Runtime Logs are how you tell those two apart, which is the whole reason the third check above exists.

A key never made the trip

v0 apps lean on connected services — a database, a sign-in provider, a mail sender — and each needs a key. Those keys live in different places for the v0 preview and for the deployed app, and they fall out of sync constantly.

One builder found his app worked inside v0 but not when opened in a new tab, and a Vercel team member confirmed those values do not carry over that way.9 In November 2025 a group of v0 users found their saved values had vanished from every project at once, and one reported that re-adding them did not stick.8 The lesson is not "check your keys" — it is that the keys are a separate system from your code.

When is it not my fault at all?

When even a plain image file comes back as not found. In mid-2026 someone documented a project where every preview deployment built successfully and then refused every single path, including the little browser icon file, which touches no code at all.4

They had tested with and without their own routing file, cleared the build cache, and turned off access protection. The logs stayed empty. At that point no amount of re-prompting will help: check Vercel's status page and open a support thread.

What should I paste into v0?

Give v0 the diagnosis, not the symptom. The failure mode of describing a symptom to an AI tool is that it confidently rewrites five files and now you have two problems.

PASTE THIS INTO V0
My deployed app returns a not-found response on all server routes, but pages load fine. The Functions tab in Vercel is empty for the latest deployment. Check whether the project is configured for static export, and check next.config for anything that disables server routes. Show me the config files before changing them.

The "show me before changing" part is the important half. You want to see what it found, then decide, rather than discover later that three unrelated files moved.

Why didn't I notice sooner?

Every story above has the same opening line, and it is not technical. It is how the person found out. Someone emailed them. A customer gave up. They opened their own app on a Sunday evening and clicked a button out of habit.

The pages loaded the whole time. That is what makes this break so expensive — the half of your app that proves it is alive is the half that was never broken. Anything that only checks whether your site loads will keep saying everything is fine.

This is the gap Fomio was built for. You paste a link, it works out what to watch, and it tells you in plain English when your app stops working — a sentence, not a code. It reports one of three things: Working, Having trouble, or Down.

The free plan watches one app from outside every five minutes, emails you when it breaks, keeps seven days of history and needs no card. The Builder plan watches three apps, checks every minute, keeps thirty days of history, and when something goes wrong it writes the prompt for you to paste straight back into v0. Current prices are on fomio.ai/pricing.

Questions people also ask

WHERE THIS COMES FROM

  1. Why is my deployed project giving a 404? — Vercel Knowledge Base
  2. I did deploy correctly, but it tells me error 404 not found — Vercel Community, 1 June 2025
  3. Fixing serverless functions 404 errors in Vercel monorepo deployments — Vercel Community, 1 January 2026
  4. Preview deployments return 404 on every path (including static assets) despite successful builds — Vercel Community, 1 July 2026
  5. Deployed NextJS app's API returns 404 — Next.js Discussions, GitHub, 25 October 2022
  6. Next Application Api Routes return 404 — Vercel Discussions, GitHub, 12 January 2021
  7. Sanity preview API returns 404 on Vercel but works locally — Sanity Answers, 1 November 2025
  8. Missing environment variables in v0 — Vercel Community, 21 November 2025
  9. Environment variables not accessible in staging — Vercel Community, 13 February 2025
KEEP READING
Read this as markdown