# v0 SEO: what to check before you launch a site built with v0

> v0 builds Next.js, so rendering is rarely the problem. We tested live v0 sites: no robots.txt, no sitemap, no canonicals. A pre-launch checklist with code.

Source: https://seofix.ai/blog/v0-seo  
Published: 2026-12-01  
Updated: 2026-11-02  
Author: SEOFix Team  
Category: Use cases  
Tags: Technical SEO, AI agents, Guides  
Length: 1,517 words, 7 min read

v0 SEO is mostly a pre-launch checklist. v0's docs say it ["defaults to Next.js"](https://v0.app/docs/full-stack-apps) 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](https://seofix.ai/blog/lovable-seo) or [Bolt.new SEO guide](https://seofix.ai/blog/bolt-new-seo).

## 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"](https://v0.app/docs/design-systems-2).
- Full-stack apps use the App Router and can use React Server Components ["for improved performance and SEO"](https://v0.app/docs/full-stack-apps).
- Every project deploys to Vercel. Publishing creates a production deployment with a stable URL; working branches get [preview deployments with their own URLs](https://v0.app/docs/deployments).
- Every deployment gets a `vercel.app` address; a custom domain is added through Vercel's dashboard ([v0 custom domain docs](https://v0.app/docs/custom-domains)).

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:

```typescript
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:**

```bash
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`](https://nextjs.org/docs/app/api-reference/functions/generate-metadata) [and](https://nextjs.org/docs/app/api-reference/functions/generate-metadata) [`title.default`](https://nextjs.org/docs/app/api-reference/functions/generate-metadata) for this:

```typescript
// 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](https://nextjs.org/docs/app/api-reference/functions/generate-metadata), 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:

```typescript
// 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 />
}
```

```typescript
// 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](https://nextjs.org/docs/app/api-reference/functions/use-search-params) 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:

```bash
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`](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/robots) and `/sitemap.xml` from [`app/sitemap.ts`](https://nextjs.org/docs/app/api-reference/file-conventions/metadata/sitemap):

```typescript
// 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",
  }
}
```

```typescript
// 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](https://seofix.ai/blog/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:**

```bash
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](https://nextjs.org/docs/app/api-reference/file-conventions/proxy) show this pattern:

```typescript
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](https://vercel.com/kb/guide/are-vercel-preview-deployment-indexed-by-search-engines) [`vercel.app`](https://vercel.com/kb/guide/are-vercel-preview-deployment-indexed-by-search-engines) [URL](https://vercel.com/kb/guide/are-vercel-preview-deployment-indexed-by-search-engines), and recommends pointing search engines at one canonical address when both are indexed. Vercel's [`VERCEL_ENV`](https://vercel.com/docs/environment-variables/system-environment-variables) 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](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls), so also redirect the old host:

```typescript
// 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:

```bash
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()`](https://nextjs.org/docs/app/api-reference/functions/not-found) 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](https://developers.google.com/search/docs/crawling-indexing/links-crawlable) [`<a>`](https://developers.google.com/search/docs/crawling-indexing/links-crawlable) [elements with an](https://developers.google.com/search/docs/crawling-indexing/links-crawlable) [`href`](https://developers.google.com/search/docs/crawling-indexing/links-crawlable), not click handlers. shadcn/ui's [Button docs](https://ui.shadcn.com/docs/components/button) 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.

```bash
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](https://seofix.ai/help/checks-indexability) and [links and redirects](https://seofix.ai/help/checks-links-and-redirects) checks. Each issue comes with a [fix prompt](https://seofix.ai/help/fix-prompts) 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](https://v0.app/docs/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](https://seofix.ai/). Your first audit is free (up to 500 pages, no card).
