Next.js gives you everything a site needs to be found, but almost none of it is switched on by default. Titles, canonical tags, the sitemap, robots rules and structured data are all things you add. This is the checklist I work through on a Next.js site using the App Router, with the file or function each item lives in.
Server rendering is the easy part. Pages in the App Router are server components by default, so the text is in the HTML.
The usual gaps are the ones you have to write yourself: per-page metadata,
metadataBase, canonical tags,sitemap.ts,robots.tsand JSON-LD.Check the delivered HTML, not the browser. View Source or a plain request tells you what a crawler gets.
This site runs on Next.js, and this is the list I use on it.
Rendering
Keep content in server components. Pass: View Source on a page shows your headings and body text. Content that only appears after a client-side fetch is not in the first response.
Mark client components narrowly. Put
"use client"on the interactive part, not the whole page.Return real status codes. Pass: an unknown address returns 404 (call
notFound()in dynamic routes), and moved pages return a redirect, not a page that says "moved".
Metadata
Set
metadataBaseonce in the root layout, so relative image and canonical addresses resolve to your real domain.Give every page its own title and description. Use the
metadataexport for static pages andgenerateMetadatafor dynamic ones. A title template in the root layout keeps the brand suffix consistent.Add a canonical tag per page with
alternates.canonical. Pass: each page's canonical is its own address, on your primary domain.Set Open Graph and Twitter images. A file named
opengraph-imagein a route, or an image in the metadata, gives every shared link a proper preview.Check for duplicates. Pass: no two pages share a title. A crawl of your own site shows this in a minute.
Discovery
Add
app/sitemap.ts. It returns the list of pages, and Next.js serves it at/sitemap.xml. Include dynamic pages by reading the same data the pages use.Add
app/robots.ts. Pass:/robots.txtallows your public pages and names the sitemap.Remove
noindexleft over from staging. Check both the meta tag and response headers. A preview setting carried into production hides the whole site.Link pages with real links. Use the
Linkcomponent, which renders an ordinary anchor. Buttons that navigate with script give a crawler nothing to follow.
Structured data
Add JSON-LD in the page component as a script tag with type
application/ld+json. Organisation on the home page, Article on posts, FAQPage where questions and answers are visible, BreadcrumbList on deep pages.Match what is on the page. Structured data that describes content a visitor cannot see is worse than none.
Speed
Use the
Imagecomponent with real width and height, so images are sized for the screen and do not shift the layout.Load fonts with
next/fontor one stylesheet, not five weights nobody uses.Keep third-party scripts off the first screen. Chat widgets and trackers are the usual cause of a slow start.
Measure on a phone connection. Run PageSpeed Insights on the home page and the two pages that bring in the most visits.
After launch
Verify the domain in Google Search Console and submit the sitemap.
Inspect three key pages with URL Inspection and read the HTML Google stored.
Recheck after every release that touches layout or routing. Canonicals and status codes are the things that break quietly.
If you are moving to Next.js
A move changes addresses, and addresses are what rank. Map every old address to a new one with a redirect before launch, keep titles and descriptions the same for the first month, and compare Search Console before and after. That part is covered in migrations. The setup above is part of SEO, AEO and GEO.
Questions
Is Next.js good for SEO?
Yes. Pages in the App Router are server components by default, so the text is in the delivered HTML. What you must add yourself is per-page metadata, canonical tags, a sitemap, robots rules and structured data.
How do I add a sitemap in Next.js?
Create app/sitemap.ts that returns your list of pages. Next.js serves it at /sitemap.xml. Include dynamic pages by reading the same data the pages use.
How do I set a canonical tag in Next.js?
Set metadataBase in the root layout and use alternates.canonical in the metadata of each page, or in generateMetadata for dynamic routes.



