Technical SEO in Next.js: a practical checklist for fast, indexable sites
SEO
Technical SEO in Next.js: a practical checklist for fast, indexable sites
A hands-on technical SEO checklist for Next.js App Router sites: rendering, metadata, canonical and hreflang, sitemaps, structured data, images, Core Web Vitals and common mistakes.
In short
A hands-on technical SEO checklist for Next.js App Router sites: rendering, metadata, canonical and hreflang, sitemaps, structured data, images, Core Web Vitals and common mistakes.
Next.js gives you everything needed for strong technical SEO: server rendering, a built-in metadata API, image optimisation and fast static pages. But none of it works by default. You still have to render important content on the server, set canonical and hreflang tags correctly, generate a sitemap, add structured data, and keep JavaScript and images under control.
This checklist is what we go through on every Next.js project, including this website. It assumes the App Router (Next.js 13 and newer), but most points apply to the Pages Router too.
1. Render content on the server
Search engines can run JavaScript, but rendering is slower and less reliable than plain HTML. Make sure the content that matters for ranking is in the HTML the server sends.
Use Server Components for page content. Keep client components for interactive parts only.
Prefer static generation (generateStaticParams) for blog posts, service pages and case studies.
Avoid fetching main content in useEffect on the client. If it only appears after hydration, it is at risk.
Check with "View page source", not with dev tools. If the text is not in the source, it is not reliably indexable.
2. Metadata for every page
The Metadata API (metadata or generateMetadata) should give every page:
A unique title of around 50–60 characters, with the main topic first
A unique description of around 140–160 characters that sells the click
openGraph and twitter data with a real image, so links look good when shared
A title.template in the root layout, so every page gets the brand name consistently
Duplicate titles and descriptions are one of the most common issues we find in audits. In a content-driven site, generate them from the content source so they never fall out of date.
3. Canonical URLs and hreflang
Every indexable page needs a canonical URL that points to itself. This prevents duplicates from tracking parameters, trailing slashes or alternative paths.
If the site has more than one language, each page should also list its translations with alternates.languages. That tells Google that the English and Polish versions are the same page for different audiences:
Common mistakes: a canonical that points every page to the homepage, a canonical on page 2 of a list that points to page 1, and hreflang tags that are not reciprocal.
4. Sitemap and robots
Next.js can generate both from code with app/sitemap.ts and app/robots.ts.
Include every indexable page, with lastModified taken from real content dates.
Leave out drafts, thank-you pages, search results and internal tools.
Submit the sitemap in Google Search Console and check the "Pages" report for excluded URLs.
Block only what must not be crawled. Do not block CSS or JavaScript files.
5. Structured data
Structured data helps search engines understand the page and can unlock rich results. Add JSON-LD in a script tag in the page component. Useful types for business websites:
Page
Schema type
Homepage
Organization, WebSite
Service page
Service, plus FAQPage if the FAQ is visible on the page
Blog post
BlogPosting or Article
Case study
Article or CreativeWork
Local business
LocalBusiness with address and opening hours
Breadcrumbs
BreadcrumbList
Validate every type with Google's Rich Results Test before release.
6. Images
Images are usually the largest files on the page. Use next/image with correct sizes so phones do not download desktop images. Then:
Serve WebP or AVIF
Give every image a meaningful alt text (or empty alt if it is decorative)
Mark only the main above-the-fold image with priority
Set width and height, or use fill inside a sized container, to avoid layout shift
7. Core Web Vitals
Google uses Core Web Vitals as a ranking signal, and they track user experience closely. The three metrics and their "good" thresholds:
Metric
What it measures
Good
LCP
How fast the main content appears
2.5 s or less
INP
How quickly the page reacts to input
200 ms or less
CLS
How much the layout jumps
0.1 or less
Typical fixes in Next.js:
LCP: preload the hero image, avoid large client-side libraries above the fold, and do not hide the hero behind an animation that starts after hydration.
INP: keep client bundles small, split heavy components with dynamic(), and avoid long tasks during interaction.
CLS: reserve space for images, ads and embeds, and load fonts with next/font.
Heavy 3D scenes, video backgrounds and large animation libraries are the usual causes of poor LCP on marketing sites. Load them after the main content, or only on desktop.
8. Internal links and URL structure
Use next/link for internal links so crawlers find plain <a href> tags.
Keep URLs short and readable: /services/seo-strategy rather than /page?id=12.
Link every new page from at least one existing page. Orphan pages are rarely indexed well.
Avoid having the same content at two URLs, such as /post and /blog/post. If both must exist, redirect one to the other with a 301.
9. Migrations and redirects
When you move to Next.js from WordPress or another platform, map every old URL to a new one and add permanent redirects in next.config or middleware. Without them you lose rankings that took years to build. We cover the full process in website migration without losing SEO.
10. Monitor after launch
Watch Google Search Console for coverage errors and Core Web Vitals.
Check real-user performance, not only Lighthouse scores in the office.
Re-test after every major release. Performance regressions creep in one component at a time.
The checklist
Main content is in the server HTML
Unique title and description on every page
Self-referencing canonical on every indexable page
Reciprocal hreflang for every language version
sitemap.ts and robots.ts generated from content
JSON-LD for organisation, articles, services and FAQ
next/image with correct sizes and alt text
LCP under 2.5 s, INP under 200 ms, CLS under 0.1 on mobile
No duplicate URLs, 301 redirects for old ones
Search Console connected and monitored
How we handle technical SEO
Technical SEO is part of every website development project we deliver, not an add-on. When content and keywords are the problem, we combine it with SEO strategy. If you suspect your Next.js site has indexing or speed issues, send us the address through the contact form and we will tell you what we find.
Frequently asked questions
Is Next.js good for SEO?
Yes. Server rendering and static generation give search engines complete HTML, and the framework has built-in tools for metadata, images and sitemaps. The results still depend on how it is set up.
Do client components hurt SEO?
Not if they are used for interactive parts. They become a problem when main content only appears after JavaScript runs in the browser.
Should I use static generation or server rendering?
Static generation for content that changes rarely, such as blog posts and service pages. Server rendering for pages that must be fresh on every request.
How do I add hreflang in Next.js?
Use alternates.languages in the Metadata API on every page, and make sure each language version points back to the others.