Published February 2025Comparison

Next.js vs Gatsby in 2025: Is Gatsby Still Relevant?

Gatsby was the go-to static site generator before Next.js fully embraced SSG. In 2025, Next.js handles everything Gatsby does — with far more flexibility. Here's when Gatsby might still make sense.

My recommendation

The verdict

Next.js for all new projects. Gatsby made sense before Next.js added ISR and strong SSG support. Today, Next.js does everything Gatsby does with the added benefit of SSR, API routes, and Server Components. Migrate existing Gatsby projects to Next.js for better long-term support and a more active ecosystem.

When to pick

Choose Next.js when

  • Any new project — Next.js has superseded Gatsby for all use cases
  • You need both static and server-rendered routes in the same app
  • You want a single framework for marketing site and authenticated dashboard
  • Active ecosystem and long-term framework investment matter

When to pick

Choose Gatsby when

  • Existing Gatsby project where migration cost isn't justified
  • Gatsby plugins already solve specific requirements (image processing, data sourcing)
  • Your team is Gatsby-expert and the project scope is limited

Side by side

Next.js vs Gatsby: feature comparison

CriterionNext.jsGatsbyWinner
SSG supportExcellent — generateStaticParamsExcellent — Gatsby's core featureBoth
SSR supportFull — App Router, Server ComponentsLimited — Gatsby is primarily staticNext.js
API routesFirst-class — Route Handlers and Server ActionsLimited — Gatsby functionsNext.js
Build speedFast with TurbopackCan be slow on large sitesNext.js
Plugin ecosystemnpm ecosystem — largerGatsby plugin system — mature but stagnatingNext.js
Active developmentVery active — Vercel investmentAcquired by Netlify — slower developmentNext.js

Scenarios

Which to choose for your use case

New marketing site with CMS

Next.js

Next.js + Sanity/Contentful is the modern pattern — better ISR and no GraphQL data layer complexity.

Existing Gatsby site that's working

Gatsby

Don't migrate a working site for its own sake — only migrate when you hit Gatsby's limitations.

FAQ

Common questions

Should I migrate from Gatsby to Next.js?+

If your Gatsby site is working well, there's no urgent need. When you hit Gatsby's limitations (SSR, dynamic routes, API routes), Next.js is the clear migration target.

Next step

Need help choosing?

I've built projects in both Next.js and Gatsby. Tell me what you're building and I'll give you a specific recommendation.