Systems Architecture•5 min read

Next.js pages not indexed after deployment? Here’s what to check

Use Search Console, the production response, and your build output to find where a public page is getting stuck.

#Next.js#Technical SEO#Search Console#Cloudflare

Key Architectural Takeaways

  • ✓Check the final production URL and the canonical Google selected in its last indexed data.
  • ✓Check the deployed HTML and headers for status, page content, canonical, and noindex directives.
  • ✓Make the URL discoverable through internal links and the sitemap, then retest it after the fix.

Inspect the exact URL in Search Console

Open URL Inspection for the public HTTPS URL you want Google to show. Record the indexing status, last crawl, user-declared canonical, and Google-selected canonical if present. Then run Test Live URL. The report describes Google’s last known version. The live test checks the current response and lets you review the rendering. Use the report to see which canonical Google chose.

  • Page with redirect. Inspect the final destination. If the redirect is intentional, point your internal links and sitemap to the destination.
  • Duplicate or alternate page. If the selected canonical is intentional, confirm it is indexable. If it is wrong, compare the two pages and align your canonical, sitemap, and internal links with the preferred URL.
  • Discovered or crawled, currently not indexed. Check that discovery and rendering work, then review whether the page offers useful information unique to that URL.

Check the deployed response and build output

This site exports Next.js pages as static HTML and serves the out directory through Cloudflare Workers. That gives me two places to check. If a route’s HTML is missing from the build, I check routing and generateStaticParams for dynamic segments. If the file exists, I compare it with the response served at the production address to catch host rewrites, redirect mistakes, and stale HTML.

Check the deployed response for the exact URL you are investigating.

Open the Network panel in your browser and load the affected page. Follow any redirects to the final document response, then check its status, response headers, and HTML. Compare the canonical and robots directives with those in the exported page.

On 25 November 2026, that homepage request returned HTTP 200 with HTML, a canonical pointing to harvindersingh.in, and an index, follow robots meta tag. To assess a specific page, repeat the check for that route and use URL Inspection for its Google index status.

  • Check that the final response is 200 and contains the expected heading and page content. A host can return 200 with an error view or the wrong route, which can be treated as a soft 404.
  • Check the final X-Robots-Tag header and the HTML robots and googlebot meta tags for noindex. Check the host’s robots.txt separately. Google must be able to crawl a page to see its indexing directives.
  • Check that the canonical matches the preferred HTTPS URL, including host and path. In the App Router, inspect inherited layout metadata and route-level alternatives for accidental homepage canonicals.

Fix discovery and retest

Link to the preferred URL from a relevant public page using a normal anchor with an href. Include the same URL in the XML sitemap. Check that the published sitemap opens successfully, then submit it in Search Console. After shipping the fix, repeat the production request and live test. Request indexing for a representative corrected URL and monitor the indexing report across affected routes. Google decides when to recrawl and whether to index the page.

References

Need help getting the fix deployed?

Share the affected URL, the deployment platform, and what URL Inspection reports. I can diagnose the issue and scope the code or hosting changes.

See Next.js production fixes