vercel-seo-audit

See your site the way Googlebot does: no JavaScript, no source, just what the server sent. The deepest Next.js and Vercel indexing checks of any audit tool.
If you're using Vercel and Google hates your site, this is for you.
A CLI that explains why Google isn't indexing your Next.js site, from what the deployed site sends back. Two of its checks are not in other SEO audit tools:
- Preview deployments left indexable. A
*.vercel.app URL served without x-robots-tag: noindex or a robots meta noindex (VERCEL_PREVIEW_INDEXABLE): an error on branch URLs, which are always previews, and a warning on other generated URLs, which may be production.
- Metadata streamed into
<body>. Next.js 15.2 and later stream dynamic generateMetadata output into <body> for every user agent not on their HTML-limited bot list, so a crawler that reads only <head> and does not run JavaScript sees no title, description or canonical. The page is fetched once more as a bot on that list to confirm (METADATA_STREAMED_TO_BODY, METADATA_NOT_IN_HEAD, METADATA_IN_HEAD).
Beyond those, the audit covers redirect chains and loops, the trailing-slash 308, robots.txt (including rules that keep Googlebot from the page's scripts and stylesheets, ROBOTS_BLOCKS_RENDER_ASSETS), the sitemap, noindex headers, canonical mismatches, Open Graph, favicons, JSON-LD, hreflang, images, security headers, performance hints, Vercel CDN cache headers and Vercel or Cloudflare challenge pages on the page, robots.txt or the sitemap (EDGE_CHALLENGE), canonical, social card, hreflang and JSON-LD URLs that point at localhost or a vercel.app host (URL_HOST_LOCALHOST, URL_HOST_VERCEL_APP, URL_HOST_MISMATCH), pages that answer Googlebot, an HTML-limited bot or another crawler differently from the default user agent (UA_STATUS_DIFFERS, UA_METADATA_DIFFERS, UA_CACHE_DIFFERS, UA_SIZE_DIFFERS), unknown paths that answer 200 or redirect instead of 404 (SOFT_404, NEXTJS_ERROR_SHELL), with --crawl to run the page checks over every sitemap URL. The 17 modules are listed under Running some modules only.
Quick start
npx vercel-seo-audit https://your-site.com

Needs Node.js 20.19.0 or later.
Install globally (optional):
npm i -g vercel-seo-audit
vercel-seo-audit https://your-site.com
Example output
SEO Audit Report for https://example.com/
Completed in 1118ms at 2026-01-31T12:30:54.448Z
Summary:
✖ 1 error
⚠ 3 warnings
ℹ 2 info
✔ 4 passed
REDIRECTS
────────────────────────────────────────
✖ [ERROR] Redirect chain detected (3 hops)
→ Reduce to a single redirect: http://example.com → https://example.com/
ROBOTS
────────────────────────────────────────
⚠ [WARNING] robots.txt not found
→ Create a robots.txt at /robots.txt
SITEMAP
────────────────────────────────────────
⚠ [WARNING] sitemap.xml not found
→ Add app/sitemap.ts in Next.js App Router
METADATA
────────────────────────────────────────
⚠ [WARNING] Canonical URL mismatch
→ Canonical points to https://www.example.com/ but page is https://example.com/
✔ [PASS] Title tag present
✔ [PASS] Meta description present
Common pitfalls we catch
These are the issues that silently tank your rankings on Next.js/Vercel: