Blog

Next.js Blog SEO: The Setup That Ranks

December 5, 2026

A Next.js blog can be one of the best SEO setups there is, as long as the basics are in place. Here's the checklist for the App Router.

1. Render posts on the server

Use static generation or server rendering for blog posts so Google gets complete HTML. With Markdown files, generateStaticParams builds every post at deploy time.

2. Metadata per post

Export generateMetadata from app/blog/[slug]/page.tsx and return:

  • title: around 50 to 60 characters
  • description
  • alternates.canonical: the post's own URL
  • openGraph: title, description, image

3. Sitemap and robots

Add app/sitemap.ts that returns every post URL with its last modified date, and app/robots.ts that points to the sitemap. Then submit the sitemap in Search Console.

4. Structured data

Add Article JSON-LD to each post (headline, author, dates, image). FAQ sections can use FAQPage markup.

5. Clean URLs and links

  • /blog/your-post-slug, lowercase, hyphens.
  • Use next/link for internal links between posts and to product pages.
  • Use next/image with width and height to avoid layout shift.

6. A publishing workflow

The usual weak spot isn't the code, it's publishing. Options:

  • Markdown in the repo: each post is a file; a commit deploys it.
  • Headless CMS: writers publish without touching code.
  • Automated commits: a tool writes the post in your format and commits it to GitHub.

AI SEO Crew publishes to Next.js, Astro and Hugo blogs this way: it reads your existing posts, matches their frontmatter and file names, and commits each new article to your repository.

How AI SEO Crew handles this

If you'd rather have this done for you, AI SEO Crew runs the whole job on your site.

  • Scout reads your site and finds the real Google searches your customers make.
  • Strategist picks the keywords that can bring you customers.
  • Writer researches each topic on the web, then writes the article with its sources.
  • Editor checks every fact and every link, and adds internal links to your pages.
  • Publisher publishes the article on your site and notifies search engines.

It publishes to WordPress, Shopify, Webflow, Wix, Framer, Ghost and coded sites. The plan includes 50 researched articles a month, and published articles stay on your site if you cancel.

Start free. Your first article is written before you add a card, and the first month is $1, then $49 a month. Results in 90 days or your money back.

Frequently asked questions

Is Next.js good for SEO?

Yes. Server rendering and static generation give search engines complete HTML, and the App Router has built-in metadata and sitemap support.

How do I add metadata to a Next.js blog post?

In the App Router, export a generateMetadata function from the post's page that returns the title, description, canonical URL and Open Graph data.

How do I publish Next.js blog posts without a developer?

Store posts as Markdown or MDX in the repo and let a tool commit new files, or connect a headless CMS.