v0 and Next.js

Why AI search can't see your v0 and Next.js app

Next.js can render on the server. When a page does not, something opted it out.

What is happening

Next.js renders on the server by default, so a blank page means something switched that off: a "use client" at the top of the page, data fetched in useEffect, or a dynamic import with ssr set to false.

GPTBot, ClaudeBot, PerplexityBot and CCBot fetch your HTML and read what is in it. They do not run your bundle. So the page they see is the page before your app exists.

What v0 and Next.js actually deploys

This is the one stack in the list that starts in the right place. An App Router page is a server component until you say otherwise, and what the server sends already contains the text. So the question here is never how to add rendering, it is which line turned it off, and the answer is usually visible at the top of the file.

How to check it yourself, in ten seconds

curl -s https://your-app.vercel.app/ | grep -c "<h1"

A result of 0 means a crawler finds no heading on your page. That is what we measure, across thirty checks.

The fix for v0 and Next.js

Move "use client" down to the one interactive component that needs it and fetch data in the server component instead of useEffect. The page then arrives complete.

What to change in v0 and Next.js

  1. Push "use client" down the tree

    A directive at the top of a page file makes the whole subtree client-rendered. Put it on the component that actually uses state or an event handler, and leave the page itself a server component. The interactive part still works, and the text around it arrives in the HTML.

  2. Fetch on the server, not in useEffect

    Data loaded in an effect arrives after the page has been sent, so nothing that reads HTML will ever see it. Await the same call in the server component instead. The response is then part of the document, and the loading state you were rendering disappears with it.

  3. Export metadata instead of setting it at runtime

    The App Router takes a metadata export, or generateMetadata for a page whose title depends on its data, and writes the tags into the HTML. Anything that sets document.title after mount is invisible to a crawler and to every link preview.

  4. Use the file conventions for the rest

    A sitemap, a robots file and the Open Graph image are all files in the app directory in this framework rather than something to hand-write. Generating the sitemap from the same source your routes come from is what stops it going stale the next time v0 adds a page.

Worth knowing about v0 and Next.js

  • ssr: false is a deliberate opt-out

    A dynamic import with ssr set to false removes that component from the server render entirely. It is the right call for a library that touches window, and the wrong one for anything carrying your copy.

  • Check which deployment you tested

    Preview deployments are not the production URL and are not meant to be indexed. Run the check against the domain you actually publish, or you will be measuring a page nobody will visit.

What we measured on v0 and Next.js sites

From 134 public v0 and Next.js sites scanned with the same checks this page describes. Aggregates only: no site is named.

62
median score out of 100, across 134 sites
13%
capped as unreadable, of 134 sites
199
median words in the HTML before JavaScript runs
  • 86%
    robots.txt says nothing about AI crawlers, which leaves what they do with the site up to whoever guesses. 86% of 134 sites, against 17% across the other builders
  • 95%
    There is no llms.txt, so an engine has to work out the shape of the site by itself. 95% of 134 sites, against 36% across the other builders
  • 72%
    The HTML arrives with no title and no meta description at all. 72% of 134 sites, against 17% across the other builders
  • 66%
    The only links on the site are the ones a script adds, so a crawler never gets past the first page. 66% of 134 sites, against 15% across the other builders
  • 73%
    There is no social card, so a shared link comes back with no title, description or picture. 73% of 134 sites, against 22% across the other builders

How to fix these in v0 and Next.js ↓

v0 and Next.js questions

I pasted v0 output into a Vite app and the HTML is empty. Why?
Because the rendering came from Next.js, not from the component. v0 generates React that a server can render, but a plain Vite app has no server step at all, so the same code becomes a client-only bundle. Either keep the project on a framework that renders on the server, or add a prerender step to the Vite build.
Does a loading skeleton count as content?
It counts as what a crawler reads, which is the problem. If the HTML contains a skeleton and the real text arrives later, the page an engine stores is the skeleton. Render the text on the server and keep the skeleton for the parts that genuinely wait on a request.

Scan your v0 and Next.js app

Free, no account. You get the full checklist and your score.

Only scan sites you own or are authorised to scan. Free scans are limited. Terms

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Three ways in

Start free. Pay only if you want the fixes written out for you.

01

Free

See what they see

The full checklist, your score, and the two worst problems explained in full. Everything else is listed but locked.

€0

Instant, on screen

Scan free

02

Do it yourself

Runbook

A PDF that walks through every fix: robots.txt templates, prerender setup per builder, JSON-LD you can paste, llms.txt. Yours to keep, with updates.

€9.99

Download straight away

Payments are handled by Stripe; businesses can add a VAT ID at checkout.