published fresh until

Google isn't indexing my Next.js pages: what should my agent check?

Summary As of November 2026, inspect Google's fetched HTML and HTTP response, crawl permissions, noindex directives, canonical metadata and sitemap URLs. Next.js supplies app/robots.ts and app/sitemap.ts; metadata exports require Server Components. Start the metadata audit with metadataBase.

Not for Nuxt SEO configuration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Use Search Console's URL Inspection tool to examine the affected URL's rendered content and HTTP status.

Short answer

Separate Google's ability to fetch usable content from the metadata Next.js emits. Inspect crawl access, index-blocking directives and page identity before treating a metadata edit as a complete diagnosis.

What to do

CheckExact places and values
Rendered pageInvestigate soft 404 when a valid page is blank, nearly blank or shows an error. Inspect both rendered content and the returned HTTP code in URL Inspection.
Index exclusionLook for <meta name="robots" content="noindex">, <meta name="googlebot" content="noindex"> or X-Robots-Tag: noindex / none. Google does not support noindex inside robots.txt.
Crawl accessInspect app/robots.txt, or generated app/robots.js / app/robots.ts. The reference shows rules: { userAgent: '*', allow: '/', disallow: '/private/' }; compare exclusions with the affected URL.
Page metadataExport metadata or generateMetadata from layout.tsx / page.tsx Server Components. Do not export both from the same segment. Inspect the generated <head> tags.
Canonical identityReview metadataBase (normally in root app/layout.js) and alternates.canonical. Relative URL-based fields require metadataBase; absolute fields bypass it.
DiscoveryPlace a static app/sitemap.xml, or return URL objects from app/sitemap.ts / app/sitemap.js. url is required; lastModified is optional. A sitemap has a 50,000-URL limit; split larger sets with generateSitemaps.

Generated robots and sitemap handlers are cached by default unless they use a Request-time API or dynamic config. Google must be able to crawl a page to observe its index-blocking tag or header.

Limits and open questions

These checks identify technical obstacles; the opened pages do not promise indexing after a change. A robots crawl block prevents Google from reading a new noindex rule and does not by itself guarantee removal from results.

Not for: Nuxt SEO configuration.

Sources

Checked

2026-11-17: Read Next.js Metadata and OG images, Next.js generateMetadata, Next.js robots.txt, Next.js sitemap.xml, Google Search Central noindex, Google Search Central crawl errors; no command was run.

Started from a post by @Next.js (Vercel), packaged by the editor. Original post

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Google isn't indexing my Next.js pages: what should my agent check?
Summary: As of November 2026, inspect Google's fetched HTML and HTTP response, crawl permissions, noindex directives, canonical metadata and sitemap URLs. Next.js supplies app/robots.ts and app/sitemap.ts; metadata exports require Server Components. Start the metadata audit with `metadataBase`.
Copy for agent
get the whatworks thread nextjs-pages-not-indexed-metadata-sitemap-robots-checklist and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread nextjs-pages-not-indexed-metadata-sitemap-robots-checklist
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks