Insights / Content engineering
Next.js SEO: what a marketing team should check before launch
Stefan Maritz · · 6 min read
Next.js ranks as well as any other stack once rendering, metadata, sitemaps, and redirects are set up, and each one of those is a decision someone has to make.
TL;DR
- The only tags Next.js adds on its own are charset and viewport, so titles, descriptions, and canonicals are yours to write.
- Google renders JavaScript, but none of the major AI crawlers did in Vercel's 2024 analysis, so important content belongs in the server HTML.
- The redirect function sends a 307, which Google treats as a temporary redirect, so migrations need the permanent version.
- Sitemaps and structured data are small files you add, and both are quick to check.
- A launch check takes an hour: view the source, run an AI bot view, and test the redirects.
A Next.js site that skips the setup can rank worse than a Webflow site that never needed any. The framework gives developers every tool for good SEO and switches on very little, so a build can go live looking perfect and be half invisible. This post is the list a marketing lead can hand to a developer, with the reason behind each line.
Is Next.js good for SEO?
Yes, with a condition. Next.js can render a page to HTML before anyone asks for it, which is the safest thing you can serve a crawler. Google says server-side or pre-rendering is still a great idea because it makes a site faster for users and crawlers, and not all bots can run JavaScript.
The condition is that someone chooses it. A developer can also build a Next.js page that loads its text in the browser, and that page behaves like any old single-page app. The framework allows both, so the question to ask your build team is which pages render on the server, and the answer should be all of the ones you want found.
What does Next.js do for you, and what is left to build?
Less than people assume. This table is the one to have open in the kickoff meeting.
| Job | What Next.js provides | What your team still writes |
|---|---|---|
| Titles and descriptions | A metadata API for each page | The copy, unique per page |
| Canonical URLs | A field in the metadata | The correct URL for every page |
| Sitemap | A sitemap file convention | The list of URLs, kept current |
| Structured data | Nothing built in | A JSON-LD script on each page type |
| Redirects | Config and functions | Every old-to-new URL pair |
| Rendering | Server and static options | The choice, page by page |
| 404 pages | A not-found convention | Real 404 status codes on missing pages |
Every row on the right is a task with an owner. If nobody owns it, it does not happen.
How should rendering be set up?
Render everything you want found on the server or at build time. Google runs a headless browser and can read client-side content eventually, though pages can wait in a render queue for longer than a few seconds. AI crawlers skip the rendering step entirely.
Vercel and MERJ looked at crawler traffic across Vercel's network and found that none of the major AI crawlers render JavaScript, including those from OpenAI, Anthropic, and Perplexity. Gemini is the exception because it uses Googlebot's infrastructure. The study dates from December 2024, so check it against your own server logs and the crawler documentation from each company.
In practice, the page text, headings, titles, navigation, and structured data should all be in the first HTML response. Interactive extras such as chat widgets and view counters can load in the browser without harm. We build this way by default: every page on this site, including every article, is rendered to HTML ahead of time, and the setup is described in our AI-native website teardown.
How do you set up metadata, canonicals, and structured data?
Metadata. Next.js reads a metadata object or a generateMetadata function from each page, and both only work in Server Components. Prerendered pages resolve their metadata at build time. The fields to fill for every page are title, description, canonical, and the social image.
Canonicals. Google's advice is to set the canonical in the HTML and never to let JavaScript change it to something different. In Next.js that means the alternates field in metadata, set per page rather than once for the whole site.
Structured data. Next.js recommends rendering JSON-LD as a script tag in the layout or page component, and warns that the data should be scrubbed of the less-than character to prevent injection. Use Organization markup on the home page, Article markup on posts, and FAQ markup where a page has real questions and answers.
How do sitemaps and redirects work?
A sitemap in Next.js is a file that returns your URLs, so build it from the same source as your pages and a new page can never exist without being listed.
Redirects need more care, and this is where Next.js catches migrations. The redirect function sends a 307 in most contexts, while permanentRedirect sends a 308. Google reads 301 and 308 as a signal that the new URL should be canonical, and reads 307 as temporary. A migration that uses the wrong function tells Google the old URLs are coming back.
There is also a ceiling. The same Next.js guide notes that Vercel limits the redirects option to 1,024 redirects, and suggests handling larger lists in Proxy. A site with years of blog posts can hit it. Our website migration checklist covers the redirect map, and the Webflow migration and Framer to Next.js guides cover the platform specifics.
What should you check before launch?
Its cheaper to run this list on staging than to explain a traffic drop in March.
- View the page source in the browser, not the inspector, and confirm the headline, body text, and links are all there.
- Run the page through an AI bot view to see what a crawler without JavaScript receives.
- Check titles, descriptions, and canonicals on ten different page types.
- Request an old URL and confirm it returns a 301 or 308 on the first hop, with no chains.
- Request a URL that does not exist and confirm the status is 404, not 200.
- Open the sitemap and confirm every live page is in it and no staging URL is.
- Test the JSON-LD in Google's Rich Results Test.
- Save a Search Console baseline for the 28 days before launch, then judge the result 28 days after.
Eight checks, one hour, and the usual launch surprises are gone.
If you would rather not carry this list yourself, our new builds come with it done, at a fixed $30,000 over four months, and a migration onto the same setup is a fixed $25,000 over three months. Every offer is on the pricing page.
Frequently asked questions
Is Next.js good for SEO?
Yes, when the pages are rendered to HTML on the server or ahead of time. Next.js also gives you metadata, sitemap, and structured data tools, but you still have to write the titles, descriptions, canonicals, and redirects yourself.
Does Next.js handle SEO automatically?
No. The only tags Next.js adds without being asked are the charset and viewport tags. Titles, descriptions, canonical URLs, sitemaps, and structured data all need to be defined.
Can AI crawlers read a Next.js site?
They can read the HTML the server sends. Vercel's analysis found that none of the major AI crawlers render JavaScript, so content that only appears in the browser is invisible to them.
Which redirect should I use in Next.js for a migration?
A permanent one, which sends a 308 status code. The redirect function sends a 307, which Google treats as temporary, so use permanentRedirect or the permanent option in next.config.
How do I add structured data to a Next.js page?
Render a JSON-LD script tag in your layout or page component, then check it with Google's Rich Results Test or the Schema Markup Validator.
Want this working for your team?
Thirty minutes with Stefan. No deck, and a straight answer.
Book a 30-minute call