DEV Community

Cover image for Is Next.js Actually Good for SEO? A Straight Answer
DesignToCodes
DesignToCodes

Posted on • Originally published at designtocodes.com

Is Next.js Actually Good for SEO? A Straight Answer

"Is Next.js good for SEO?" Short answer: yes, genuinely — as long as you don’t undo it. Here’s the honest version with the caveat that actually matters.

Why it’s strong

  • Server-rendered HTML by default (App Router) — crawlers and AI engines read the full page.
  • The Metadata API: per-route titles, descriptions, canonicals in code, no plugin.
  • sitemap.ts / robots.ts generate and stay in sync.
  • next/image + next/font + Server Components make Core Web Vitals the default path.
export const metadata = {
  title: 'Free Business Templates',
  description: 'Fast, SEO-ready templates.',
  alternates: { canonical: 'https://example.com/templates' },
}
Enter fullscreen mode Exit fullscreen mode

The caveat (where devs shoot themselves in the foot)

Mark everything 'use client' and you push content back into JS — crawlers see an empty shell. Skip next/image and CWV tanks. Client-render a page that should be static, and the content is hidden. The framework helps; it doesn’t babysit.

Verdict

Use server rendering + the Metadata API + the image/font tools, and Next.js is one of the best SEO frameworks going. Ignore them, and it’s React with extra steps.

Want an SEO-ready base? Grab a DesignToCodes Next.js template.

What’s bitten you hardest — client components or a canonical mistake? 👇

Top comments (0)