Next.js and v0: the silent metadata bugs that keep a green build out of Google
Duplicate titles from "use client", og:image without a full URL, canonicals that change after JavaScript and redirect chains — on every page at once.
See also: Five silent Next.js SEO bugs a green deploy hides, and how to find them on every route
The short answer
In the Next.js App Router, metadata can only be exported from a server component. Put "use client" at the top of page.tsx and its title and description quietly fall back to the layout's, so many pages share one title. Without metadataBase, og:image and canonical may not be full URLs, and trailingSlash settings can add redirect hops.
Check it in ten seconds
Open two different pages and compare the browser tab titles, then View source and search for og:image: a title repeated across pages, or an og:image that is not a full https:// URL, confirms it.
What GLLmolfar checks on the whole site
Duplicate titles and descriptions
The Page titles tab lists duplicate, missing and too long titles across the whole site, so one shared layout title shows up at once.
Open Graph and canonicals
Social previews flags og:image that is not a full URL and og:url that differs from the canonical; the JavaScript tab flags canonicals that change after JavaScript.
Redirect hops
Response codes shows a redirect that lands on another redirect, and redirects that end on an error.

The fix
Keep metadata in the server page and the interactive part in a client child; give the root layout a metadataBase:
// app/layout.tsx — absolute URLs for og:image and canonical
export const metadata = { metadataBase: new URL("https://example.com") };
// app/pricing/page.tsx — a server component: no "use client" here
import PricingClient from "./PricingClient"; // "use client" lives in this file
export const metadata = { title: "Pricing", alternates: { canonical: "/pricing" } };
export default function Page() {
return <PricingClient />;
}Questions
- Why does npm run build not warn me?
- A page with "use client" simply does not export metadata the router can use; it is not an error, so the build stays green.
- Does v0 code have the same problem?
- Generated components often start with "use client". If one ends up as the page itself, its metadata is not applied.
- Can GLLmolfar check a Vercel preview?
- Yes, any URL your computer can open, including a preview deployment.