For Next.js sites

Next.js sitemap checker

Check every route in your Next.js sitemap for trailing-slash redirects, 404s from stale build-time sitemaps, wrong canonicals and missing metadata.

Checks every URL listed in your sitemap. It doesn't follow links between pages.

  • No sign-up needed
  • No subscription
  • Full report from €2.99

Where is my Next.js sitemap?

/sitemap.xml from app/sitemap.ts or next-sitemap

In the App Router, app/sitemap.ts (or a static app/sitemap.xml) is served at /sitemap.xml. Many sites use the next-sitemap package instead, which writes sitemap files at build time.

What the scan checks

We read your Next.js sitemap, fetch every URL it lists the way a search engine would, and check each page for:

  • Status codes, broken pages and redirect chains
  • Noindex tags, robots.txt blocks and canonical URLs
  • Titles and meta descriptions: missing, duplicate, too long or short
  • H1 headings and text volume
  • Server response time and page size
  • Internal and external links, and images missing alt text

We only fetch public pages listed in your sitemap. Nothing is installed on your site and no login is needed.

What we find on Next.js sites

Common Next.js sitemap problems

Trailing-slash redirects

If the sitemap lists /page but trailingSlash sends visitors to /page/ (or the other way round), every URL is a 308 redirect. We catch it on the first page.

Stale build-time sitemaps

Sitemaps generated at build time can list pages that have since been deleted. We flag every 404.

Canonicals pointing at the wrong host

A metadataBase or canonical left pointing at localhost or a preview deployment shows up as canonicals pointing elsewhere.

Missing titles and descriptions

Routes without metadata or generateMetadata fall back to the root layout's defaults, which then show up as duplicates.

Slow server-rendered pages

We time every response and list the slowest routes.

Example findings

Example report

An illustration of what the report shows for a typical Next.js site. Your own audit lists your real issues, with every affected URL in the full report.

  • warning 240 Redirecting URL in sitemap
    • e.g. /docs/getting-started
  • critical 6 Broken or unreachable
    • e.g. /blog/removed-post
  • warning 31 Canonical points elsewhere
    • e.g. /pricing
  • warning 58 Duplicate title
    • e.g. /docs/api/config

Quick fixes for Next.js

  • Generate sitemap URLs with the same trailing-slash setting as next.config.js.
  • Set metadataBase to your production URL.
  • Regenerate the sitemap on deploy, not just at the first build.

Then run a re-check within 30 days of buying your report to confirm the fixes, at 50% off.

Next.js sitemap checker FAQ

Does it render JavaScript?

No. We check the HTML your server sends, which is what most search engine crawls see first. With server-side or static rendering, that includes your content and metadata.

Can I run it after every deploy?

Yes. Run a re-check after deploying and the report shows what's fixed and what's new since the last audit.

Why are all my URLs redirects?

Usually a trailing-slash mismatch between your sitemap and next.config.js. Fix the sitemap to list the URLs your site actually serves.

How healthy is your Next.js site?

Start free. We check the first 100 pages without sign-up, and up to 500 when you sign in.

Run a free scan of my Next.js site

Other platforms