Next.js App Router GEO & AI Readiness Checklist
A practical engineering checklist for Next.js App Router sites covering SSR extractability, robots.ts, sitemap.ts, /llms.txt, canonical metadata, and honest JSON-LD.
1. Keep primary content in Server Components (F10)
Automated crawlers and lightweight answer-engine fetchers often read the initial HTML document without executing heavy client-side JavaScript bundles. In Next.js App Router, keep marketing headlines, pricing tables, FAQ copy, and documentation bodies inside Server Components rather than fetching them inside useEffect.
- Verify with
curl -sS https://your-site.example/ | grep -i "<h1"that your main heading and body copy appear in the raw HTML response. - Avoid wrapping entire marketing pages in
"use client"just for one interactive widget; push client boundaries down to leaf buttons or forms.
2. Generate robots.ts and sitemap.ts from real routes (F02, F03)
Use Next.js metadata routes so /robots.txt and /sitemap.xml never drift from production URLs:
// app/robots.ts
import type { MetadataRoute } from "next";
export default function robots(): MetadataRoute.Robots {
return {
rules: [{ userAgent: "*", allow: "/", disallow: ["/api/", "/admin/"] }],
sitemap: "https://example.org/sitemap.xml",
};
}
- Always set
metadataBasein your root layout using your canonical productionhttps://origin so Open Graph images, canonicals, and alternates never emitlocalhostor preview domains (F08). - Avoid emitting a synthetic
lastModified: new Date()on every sitemap request — an always-today timestamp gives crawlers no signal about what actually changed.
3. Publish a route-backed /llms.txt handler (F16)
Instead of maintaining a static Markdown file by hand, generate /llms.txt from the same route registry or content collection that powers your sitemap:
// app/llms.txt/route.ts
export function GET() {
const body = [
"# Example Product",
"",
"> Concise one-sentence summary of what the site provides.",
"",
"## Documentation",
"",
"- [Quickstart](https://example.org/docs/quickstart): Five-minute setup guide",
].join("\n");
return new Response(body, {
headers: { "content-type": "text/plain; charset=utf-8" },
});
}
Serving text/plain; charset=utf-8 with HTTP 200 prevents soft-404 HTML fallbacks and keeps sampled links live.
4. Align canonicals, hreflang, and JSON-LD with visible HTML (F08, F11)
- Export
generateMetadataon every public route with explicitalternates.canonicalandalternates.languages(plusx-defaultfor multi-locale sites). - Render
Organization,WebSite,SoftwareApplication,FAQPage, orArticleJSON-LD only for facts that are visibly present in the same HTML document. - Publishing clean metadata and
/llms.txtdoes not guarantee that any AI model will cite or recommend your site — it ensures automated readers can inspect your pages accurately without ambiguity.
5. Verify production responses end to end (F01)
After deploying, verify HTTP 200 status, clean HTTPS redirects without redirect loops, and real crawler accessibility by running a free check on your production domain.
Check your live site against these rules
Run a free rule-based readiness check to inspect your real HTTP responses, robots.txt verdicts, llms.txt structure, and JSON-LD evidence.