A Technical SEO Checklist for Next.js Websites

Next.js gives you strong SEO foundations, but only if you use them. Work through this checklist to make sure search engines can crawl, understand and rank your site.

By devUnzip Team5 min read
Illustration for the article: A Technical SEO Checklist for Next.js Websites

Key takeaways

  • Render important content on the server so it is present in the HTML search engines receive.
  • Give every page a unique title, description and canonical URL using the Next.js Metadata API.
  • Generate a sitemap and robots.txt from code and submit the sitemap in Google Search Console.
  • Add structured data, use one h1 per page, optimize images and monitor Core Web Vitals.

Next.js is one of the best frameworks for search-friendly websites, because it can send fully rendered HTML to the browser. But a framework only provides the tools. We regularly review Next.js sites that rank poorly for avoidable technical reasons. This checklist covers what to verify before and after launch.

1. Render content on the server

Search engines index what is in the HTML they receive. Make sure your important text, headings and links are rendered on the server (using server components, static generation or server-side rendering), not loaded only after JavaScript runs in the browser. A quick test: view the page source and search for your main heading.

2. Give every page a unique title and description

Use the Metadata API to set a specific title and description for each page. Keep titles to roughly 60 characters and descriptions to roughly 155 so they are not cut off in results. For dynamic pages such as blog posts and products, generate them with generateMetadata.

Avoid the same title on several pages. It forces search engines to guess which page matters for a query.

3. Set canonical URLs

If the same content can be reached at more than one address, with and without www, with tracking parameters, or with a trailing slash, tell search engines which one is official using a canonical URL. Pick one domain form and redirect the other to it.

4. Generate a sitemap and robots.txt

Next.js can generate both from code with sitemap.ts and robots.ts. Include every page you want indexed, including dynamic ones, and keep admin and API routes out. Then submit the sitemap in Google Search Console.

5. Add structured data

Structured data (JSON-LD) describes your content in a format search engines read directly. Useful types include Organization, BreadcrumbList, Article, FAQPage, Product and JobPosting. It can make your result eligible for richer displays. Only mark up content that is actually visible on the page.

6. Use one clear heading structure

Each page should have exactly one h1 that states what the page is about, followed by h2 and h3 headings in order. Headings are for structure, not styling. Choose them for meaning and style them with CSS.

7. Optimize images

  • Use the next/image component so images are resized, compressed and lazy-loaded.
  • Always set width and height to prevent layout shift.
  • Write descriptive alt text for meaningful images, and an empty alt for decorative ones.

8. Watch your Core Web Vitals

Google measures how quickly your main content appears, how soon the page responds to input, and how stable the layout is. The usual causes of poor scores are oversized images, too much client-side JavaScript, and fonts or embeds that shift the layout. Load heavy components only when they are needed, and test on a mid-range phone, not only on your laptop.

9. Make social sharing work

Open Graph and Twitter tags control how your pages look when shared. Check that every page has a title, description and a 1200 by 630 pixel image, and that the image URL actually loads. A missing share image is one of the most common mistakes we find.

10. Return the right status codes

Missing pages should return a real 404, not a page that says "not found" with a 200 status. Moved pages should use permanent redirects. Both affect how search engines treat your site over time.

Search engines discover and weigh pages through links. Make sure every important page is reachable from your navigation or from related pages, using descriptive link text rather than "click here".

12. Make the site work well on mobile

Google primarily uses the mobile version of a page for indexing and ranking. Check that the text is readable without zooming, buttons are large enough to tap, nothing scrolls sideways, and the mobile page contains the same content as the desktop one. Content hidden or removed on small screens may not be counted.

13. Use HTTPS and one domain

Serve every page over HTTPS and redirect HTTP to it. Choose one form of your domain, with or without the www prefix, and redirect the other. Two live versions of the same site split your ranking signals and confuse analytics.

14. Handle multiple languages properly

If your site is available in more than one language or region, give each version its own URL and declare the alternatives with hreflang annotations. Next.js supports this through the alternates setting in the Metadata API. Avoid switching language automatically based only on location, because search engines usually crawl from a single region and may never see the other versions.

Common mistakes we see

  • A noindex tag left on from development. One line can keep an entire site out of search results. Check it on the live site after every launch.
  • Blocking important files in robots.txt. Blocking scripts, styles or image routes can stop search engines from rendering pages correctly.
  • Everything marked as a client component. Adding the client directive at the top of every file sends far more JavaScript than necessary and slows the page.
  • Animated content that starts invisible. Text that only appears after an animation runs is still indexed if it is in the HTML, but heavy animation hurts loading performance.
  • Placeholder values in production. Example verification codes, default titles and sample text are easy to forget and look careless in search results.

After launch

Technical SEO makes your site eligible to rank. Ranking itself depends on useful content and on other sites linking to you. Set up Google Search Console, watch which queries bring visitors, and keep publishing pages that answer real questions from your customers.

If you would like a site built with all of this in place from day one, see our web development services or contact us for a review of your current site.

  • SEO
  • Next.js
  • performance
  • web development
All articles
Keep Reading

More Articles

Project Planning

How Much Does It Cost to Build a Web Application?

There is no single price for a web application, but the cost is not a mystery either. Here are the factors that decide it and how to keep your budget under control.

5 min readRead article
Let's talk

Ready to Start Your Project?

Let's discuss your requirements and create a solution that drives your business forward.