v0 SEO: what to check before you launch a site built with v0
v0 generates Next.js apps that render on the server, so Google gets real HTML. The live v0 sites we tested still had no robots.txt, sitemap or canonical tags. The pre-launch checklist and the code for each fix.

v0 SEO is mostly a pre-launch checklist. v0's docs say it "defaults to Next.js" and deploys to Vercel, so pages render on the server and Google gets real HTML. What v0 doesn't add on its own is the rest of technical SEO: on 2 November 2026 we fetched nine live sites built with v0, and none had a canonical tag, none served a working robots.txt or sitemap.xml, and two redirected even robots.txt to a login page. Below is what to check before launch, the curl command for each item, and the Next.js code or v0 prompt that fixes it.
If you're on Lovable or Bolt, those builders have different problems; start with our Lovable SEO guide or Bolt.new SEO guide.
What v0 generates
From v0's own documentation, checked on 2 November 2026:
- New chats "start with a Next.js app that uses shadcn/ui and Tailwind CSS".
- Full-stack apps use the App Router and can use React Server Components "for improved performance and SEO".
- Every project deploys to Vercel. Publishing creates a production deployment with a stable URL; working branches get preview deployments with their own URLs.
- Every deployment gets a
vercel.appaddress; a custom domain is added through Vercel's dashboard (v0 custom domain docs).
So a v0 site is a normal Next.js app on Vercel. Everything in the Next.js docs applies, and you fix problems in code rather than in builder settings.
What we found on live v0 sites
We found the sites through public GitHub repos whose app/layout.tsx contains generator: "v0.app", a line v0 adds to the root metadata, and fetched each linked deployment's raw HTML. Nine answered.
| Check | Result on 9 live v0 sites |
|---|---|
Server-rendered <title> and description | 9 of 9 |
<link rel="canonical"> | 0 of 9 |
/robots.txt | 404 on 7; redirected to /auth/login on 2 |
/sitemap.xml | 404 on 7; redirected to /auth/login on 2 |
| Unknown URL | Real 404 on 7; redirected to /auth/login on 2 |
| Under 25 words of text in the raw HTML | 4 of 9 |
Home page with zero <a href> links | 4 of 9 |
Several of these were apps, not marketing sites, so thin HTML on a dashboard is expected. The pattern still holds: rendering and status codes come from Next.js and are fine; the SEO plumbing that Next.js leaves to you is missing.
1. Replace the default title and description
v0's root layout starts with placeholder metadata. A GitHub code search we ran on 2 November 2026 for layout.tsx files containing both "v0 App" and "Created with v0" returned about 3,250 files:
export const metadata: Metadata = {
title: "v0 App",
description: "Created with v0",
generator: "v0.app",
}
Every page that doesn't set its own metadata inherits these. All nine sites we fetched had replaced the placeholder, but a title set only in the layout is still shared by every route that has no metadata export of its own.
Check:
for p in / /pricing /about /blog; do
printf '%-10s ' "$p"
curl -s "https://yoursite.com$p" | grep -o '<title>[^<]*</title>'
done
Fix: use a title template in the root layout and a metadata export in every page.tsx. Next.js documents title.template and title.default for this:
// app/layout.tsx
export const metadata: Metadata = {
metadataBase: new URL("https://acme.com"),
title: { default: "Acme: invoicing for freelancers", template: "%s | Acme" },
description: "Send invoices, track payments and chase late clients.",
}
// app/pricing/page.tsx
export const metadata: Metadata = {
title: "Pricing",
description: "Three plans from $9 a month. Every plan includes unlimited invoices.",
alternates: { canonical: "/pricing" },
}
You can delete the generator line; it's harmless but tells everyone how the site was built.
2. Pages that are client components can't set metadata
v0 often writes "use client" at the top of page.tsx. Two of the five page files we opened in the public repos did. Next.js says the metadata object and generateMetadata are only supported in Server Components, so these pages silently fall back to the layout's title.
The fix Next.js documents is to keep page.tsx as a Server Component and move the interactive code into its own file:
// app/tools/page.tsx (server component)
import type { Metadata } from "next"
import { ToolsClient } from "./tools-client"
export const metadata: Metadata = {
title: "Free invoice tools",
alternates: { canonical: "/tools" },
}
export default function Page() {
return <ToolsClient />
}
// app/tools/tools-client.tsx
"use client"
export function ToolsClient() { /* hooks, state, handlers */ }
Client components still render to HTML on the server, so the content is usually fine. The metadata is what you lose.
3. Watch for Suspense boundaries that swallow the page
One of the sites returned three words of HTML. Its root layout wraps the whole app, providers included, in <Suspense fallback={<div className="min-h-screen bg-white dark:bg-gray-900" />}>, so whenever something inside suspends during prerendering, the HTML gets that empty fallback. We didn't trace which component suspends there, but useSearchParams is a common cause: on a prerendered route, Next.js renders the client tree up to the closest Suspense boundary on the client and puts the fallback in the initial HTML. If the closest boundary is around everything, the HTML is an empty div.
Check: compare the word count of the raw HTML with what you see in the browser:
curl -s https://yoursite.com/ | sed -e 's/<script.*<\/script>//g' -e 's/<[^>]*>/ /g' | wc -w
Fix: move the Suspense boundary down to the component that reads search params, or read searchParams in the Server Component page and pass values down as props. Both are in the useSearchParams docs.
Prompt for v0:
The raw HTML of / contains almost no text because the root layout wraps
the whole app in Suspense. Move each Suspense boundary down to the
smallest component that uses useSearchParams, or read searchParams in the
page server component and pass it as props. Don't change the design.
Afterwards, the server HTML for / must contain the hero heading and the
main body text.
4. Add robots.txt and sitemap.xml
None of the nine sites had either. In the App Router, both are a file each. Next.js generates /robots.txt from app/robots.ts and /sitemap.xml from app/sitemap.ts:
// app/robots.ts
import type { MetadataRoute } from "next"
export default function robots(): MetadataRoute.Robots {
return {
rules: { userAgent: "*", allow: "/", disallow: ["/dashboard/", "/api/"] },
sitemap: "https://acme.com/sitemap.xml",
}
}
// app/sitemap.ts
import type { MetadataRoute } from "next"
import { getPosts } from "@/lib/posts"
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const posts = await getPosts()
return [
{ url: "https://acme.com/", lastModified: new Date("2026-11-01") },
{ url: "https://acme.com/pricing" },
...posts.map((p) => ({ url: `https://acme.com/blog/${p.slug}`, lastModified: p.updatedAt })),
]
}
Use real modification dates, not new Date() on every build; our post on sitemap lastmod explains why. For big sites, split with generateSitemaps, covered in the Next.js sitemap guide.
5. Keep auth redirects away from robots.txt and the sitemap
Two sites redirected every path, including /robots.txt and /sitemap.xml, to /auth/login with a 307. That's an auth check in middleware.ts (renamed proxy.ts in Next.js 16) whose matcher covers everything. Googlebot can't read a robots.txt or sitemap behind a login, and every public page also redirects.
Check:
curl -s -o /dev/null -w '%{http_code} %{redirect_url}\n' https://yoursite.com/robots.txt
Fix: exclude public files from the matcher. Next.js's own proxy docs show this pattern:
export const config = {
matcher: [
"/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)",
],
}
Then make the proxy redirect only paths that need a session (/dashboard, /settings), and let marketing pages through.
6. One canonical host: custom domain, not vercel.app
A v0 project keeps its vercel.app production URL after you add a custom domain. Vercel adds X-Robots-Tag: noindex to preview deployments, not to the production vercel.app URL, and recommends pointing search engines at one canonical address when both are indexed. Vercel's VERCEL_ENV variable tells production apart from preview at runtime. With zero canonical tags, nothing on the sites we tested told Google which host to prefer.
Setting metadataBase plus alternates.canonical on each page (section 1) makes every page point to the custom domain. Google treats canonicals as one of several signals, so also redirect the old host:
// in proxy.ts, before the auth logic
// VERCEL_ENV is "production" only on production deployments, so previews keep working
const host = request.headers.get("host") ?? ""
if (host.endsWith(".vercel.app") && process.env.VERCEL_ENV === "production") {
const url = new URL(request.nextUrl.pathname + request.nextUrl.search, "https://acme.com")
return NextResponse.redirect(url, 308)
}
Check the result for both hosts:
curl -s https://acme.com/pricing | grep -o '<link rel="canonical"[^>]*>'
curl -s -o /dev/null -w '%{http_code} %{redirect_url}\n' https://acme.vercel.app/pricing
7. Real 404s and real links
Seven of the nine sites returned a proper 404 for unknown URLs, which is the Next.js default. Keep it that way on dynamic routes: when a database lookup finds nothing, call notFound() instead of rendering an empty template with 200.
Links are the more common miss. Four home pages had no <a href> at all. Some were single-screen apps, but if your site has several pages, look for navigation built from <Button onClick={() => router.push("/x")}>. Google follows <a> elements with an href, not click handlers. shadcn/ui's Button docs style a link with buttonVariants() rather than turning a button into one, so <Link href="/pricing" className={buttonVariants()}>Pricing</Link> keeps the look and renders a real anchor.
curl -s https://yoursite.com/ | grep -o '<a [^>]*href="/[^"]*"' | sort -u
The pre-launch checklist
| Item | Pass when |
|---|---|
| Titles | Each route prints its own <title> with curl |
| Client pages | No page.tsx that needs metadata starts with "use client" |
| Raw HTML | Main text appears in curl output, not only in the browser |
| robots.txt | 200 text/plain, not a redirect |
| sitemap.xml | 200, lists every public URL with real dates |
| Canonical | Absolute URL on your custom domain on every page |
| vercel.app | Redirects to the custom domain |
| 404s | Unknown and deleted records return 404 |
| Links | Navigation renders <a href> |
Then submit the sitemap in Search Console and inspect a few URLs.
Checking every page, not five
The curl loop works for a handful of routes. A v0 site with a blog, docs or programmatic pages needs the same checks on every URL, grouped by template, so "/blog/[slug] has no canonical on 140 pages" is one fix. SEOFix crawls the raw HTML of every page and groups issues by URL template; CANONICAL_MISSING, DUPLICATE_TITLE and redirected or broken internal links are all in its indexability and links and redirects checks. Each issue comes with a fix prompt you can paste into v0 or a coding agent.
FAQ
Is v0 good for SEO?
The foundation is: Next.js on Vercel with server rendering. What v0 leaves out by default is metadata per page, canonicals, robots.txt and a sitemap. Add those before launch and a v0 site is as indexable as any Next.js site.
Does v0 add a sitemap automatically?
None of the nine live v0 sites we tested had one. Ask v0 to add app/sitemap.ts and app/robots.ts, then check both URLs with curl.
Will Google index my v0 preview links?
Vercel sends X-Robots-Tag: noindex on preview deployments by default. The production vercel.app URL doesn't get it, so redirect it to your custom domain.
Should I export v0 code to my own repo for SEO?
You don't need to for SEO. v0 can connect to GitHub, and the fixes above are ordinary Next.js code either way. A repo helps when a developer or coding agent will maintain the site with tests and reviews.
Check every page of your v0 site at seofix.ai. Your first audit is free (up to 500 pages, no card).
Keep reading

Bolt.new SEO: what a Bolt site sends to Google, and how to fix it
We tested live bolt.host sites with curl. Each one sent crawlers an empty React shell and answered 200 for missing pages. How to check your Bolt site and fix rendering, 404s, sitemaps and robots.txt.
1,797 words · 8 min read

Fix technical SEO with OpenAI Codex (CLI and cloud)
Codex can fix SEO bugs in your templates if it gets crawl data and a way to recheck the live site. MCP setup in config.toml, an AGENTS.md section, sandbox modes, cloud vs local, and a Laravel canonical fix.
1,815 words · 8 min read

Lovable SEO and other vibe-coded sites (Bolt, v0): what breaks and the prompts that fix it
New Lovable apps render on the server since May 2026, so empty HTML is no longer the default problem. Duplicate titles, homepage canonicals, soft 404s and button links still are. Here's how to check and fix each.
2,025 words · 9 min read