All posts
Platform migrations

WordPress to Next.js Migration: When It's Worth It and How to Do It

WordPress to Next.js migration: when it's worth it, when Astro or Framer is cheaper, and the step-by-step way to rebuild a WordPress site in Next.js safely.

By Mehdi Hassan8 min read

The short answer

A WordPress to Next.js migration is worth it when your site carries product logic, needs to scale to many pages or integrations, or should share a design system with your app. For a brochure site, Astro or Framer usually costs less to build and run. If you do move, pick a CMS, map every URL, rebuild templates and test redirects before launch.

Key takeaways

  • Next.js earns its cost when the site has logic, scale or shares code with your product.
  • For brochure and content sites, Astro or Framer is usually cheaper to build and maintain.
  • Decide the CMS first: headless WordPress, Sanity, Payload or files in the repo.
  • Next.js redirects and metadata live in code, so SEO depends on developer discipline.
  • Budget for ongoing developer time; a code site isn't finished at launch.

Part of Migrating From WordPress: Which Platform Should You Move To?

Should you migrate a WordPress site to Next.js?

You should migrate a WordPress site to Next.js when the site does more than present content: logged-in areas, pricing calculators, product data, many programmatic pages or a design system shared with your app. If it's mainly pages and a blog, Next.js is more power and more maintenance than you need.

Next.js is a React framework for building websites and web apps with server rendering, static generation and API routes in one codebase. We build marketing sites in it ourselves, and we still tell many teams not to use it. The right destination depends on your team and content, which our hub on where to move when you migrate from WordPress covers in full.

When is a WordPress to nextjs migration worth it?

A WordPress to nextjs migration is worth it in four situations: product logic on the site, large-scale or programmatic pages, custom integrations, and a shared design system with your app. Outside those, simpler options usually win on cost.

  • Product logic. Signup flows, account areas, calculators, gated content or live product data that a builder can't handle cleanly.
  • Scale. Thousands of pages generated from data, such as integrations directories, locations or templates.
  • Custom integrations. Pulling pricing, docs or changelog data from your own APIs, or tight coupling with your product.
  • Shared design system. The marketing site and the app use the same components, tokens and engineering team.
  • Full ownership. You want the code in your own repository, hosted where you choose, with no platform lock-in.

If none of those apply, you're paying for flexibility you won't use. Framer or Webflow will let marketers ship pages without a developer; see WordPress to Framer or WordPress to Webflow.

Next.js vs Astro vs Framer for a former WordPress site

Next.js suits sites with logic and scale, Astro suits content-heavy sites that want static speed with less framework overhead, and Framer suits page-led marketing sites edited by non-developers. Choose by what the site does and who edits it.

Factor

Next.js

Astro

Framer

Best for

Product logic, scale, shared design system

Content-heavy, mostly static sites

Page-led marketing sites

Who edits

Developers, or marketers via a headless CMS

Developers, or marketers via a headless CMS

Designers and marketers directly

Interactivity

Full React app capability

Static by default, interactive islands where needed

Built-in effects and components

Hosting

Vercel, Cloudflare or self-hosted

Any static host or server

Framer hosting

Ongoing upkeep

Dependency and framework updates

Lighter, still code

Handled by the platform

Build cost

Highest of the three

Moderate

Usually lowest

Astro deserves more attention than it gets from teams leaving WordPress. Our research found one public account of a 2,224-page site moved to Astro with coding agents, which shows how far static builds scale. See WordPress to Astro migration for that route.

Which CMS should you pair with Next.js?

Pair Next.js with a CMS that matches your editors: headless WordPress if they love WordPress, Sanity or Payload for structured content with a modern editor, or Markdown files in the repo if only developers publish. Decide this before anything else, because it shapes the content model and the import.

CMS option

Good fit when

Trade-off

Headless WordPress

Editors want to keep WordPress

Two systems to maintain; front-end plugins need replacing

Sanity

You want flexible structured content and live previews

Hosted service with its own pricing tiers

Payload

You want a self-hosted, code-configured CMS in the same stack

You host the database and admin

Files in the repo

Developers publish and content changes rarely

Marketers can't edit without help

Our guide to headless WordPress with Next.js covers the first option's hidden costs. Whatever you choose, plan the content model with the marketing team, since they'll live in it every week.

How do you rebuild a WordPress site in Next.js?

Rebuild a WordPress site in Next.js by inventorying content and URLs, choosing the CMS, building a component library, creating templates, importing content and wiring redirects and metadata before launch. AI coding agents speed up the build step a lot; they don't replace the planning or QA.

  1. Inventory URLs and content

    Crawl the site, export posts, pages, media and taxonomies, and pull traffic and backlink data to decide what to keep.

  2. Choose the CMS and model content

    Define content types, fields and references, then build import scripts from the WordPress export or REST API.

  3. Build components and templates

    Create a small design system and the page templates. A design system for a Next.js marketing site keeps new pages consistent.

  4. Recreate routes and slugs

    Use dynamic routes so post URLs match WordPress where they can. Next.js lets you reproduce almost any permalink structure, including root-level and date paths.

  5. Add redirects and metadata

    Define redirects in config or middleware, and generate titles, descriptions, canonicals, sitemaps and structured data from CMS fields.

  6. Replace plugins

    Forms, search, analytics, consent and SEO output become services or code. Test each one.

  7. QA, launch and monitor

    Test templates on real devices, run the old URL list through a redirect checker, then watch Search Console daily.

Where AI coding agents help, and where they don't

Our research found public accounts of agent-led rebuilds off other platforms finishing fast: one team migrated off Webflow in a week, and one site was reported rebuilt in three days for $260 in usage. Agents are good at turning screenshots and specs into components, and at writing content import scripts.

The same research concluded that the real cost of a code migration is still SEO and QA, not tokens. Agents don't know which URLs earn backlinks, which content to retire, or whether the form actually reaches your CRM. Budget people-time for those parts, whatever tools write the code.

What does a Next.js site cost to run after WordPress?

A Next.js site costs hosting, any hosted CMS fees and developer time for updates and new pages. WordPress also needed hosting and maintenance, so the difference is mostly in who does the work and how often.

Hosting a marketing site on Vercel or Cloudflare can be inexpensive at startup traffic levels; check each provider's current plan page. The bigger line is people: framework and dependency updates, security patches and new templates. Our guides to keeping a Next.js marketing site healthy and hosting Next.js on Cloudflare Workers cover both.

Designify website: up to 6 pages, custom design, Next.js, CMS
$8,000
Per extra page beyond six
+$500
Retainer for ongoing design and development
$6,000/mo
Quoted range for WordPress to headless Next.js in our research
£13k–£30k

Can you go back if Next.js isn't right?

Yes. Teams sometimes move from code back to a visual builder when the marketing team needs to publish without engineers. It's another rebuild, so it's better to choose carefully the first time.

If you're already on Next.js and marketing is blocked, read Next.js to Framer migration, Next.js to Webflow migration or our broader guide to moving from code to a visual builder. If you're starting on Framer and outgrowing it, Framer to Next.js covers the opposite path.

Frequently asked questions

Is Next.js better than WordPress for SEO?
Next.js isn't automatically better for SEO than WordPress. Both can produce fast, crawlable, well-structured pages. Next.js gives developers full control over rendering, metadata and performance, while WordPress relies on themes and plugins that can add weight. The SEO result depends on how well each is built and maintained, so compare real-user speed and content quality, not frameworks.
Can marketers edit a Next.js website?
Marketers can edit a Next.js website when it's paired with a headless CMS such as Sanity, Payload or headless WordPress. They can update text, images, posts and often assemble pages from pre-built sections. Creating a genuinely new layout still needs a developer. If your marketers expect to design new pages freely, a visual builder like Framer or Webflow fits better.
How long does a WordPress to Next.js migration take?
It depends on templates, content volume, the CMS choice and integrations. Our research found agencies quoting 6 to 12 weeks for WordPress to headless Next.js projects, and timelines vary widely. Content cleanup, URL mapping and QA often take longer than the build itself, especially for sites with large blogs, custom post types or several languages.
Do I need a developer to maintain a Next.js site?
Yes, at least part-time. A Next.js site needs framework and dependency updates, security patches, fixes when integrations change and help building new templates. Content edits through a CMS don't need a developer, but the codebase does. Many teams use a retainer or an in-house engineer for this rather than hiring for it full time.
Is React the same as Next.js for a WordPress replacement?
No. React is a library for building user interfaces, and Next.js is a framework built on React that adds routing, server rendering, static generation and other features websites need. A plain client-side React app can be hard for search engines to index well, which is why marketing sites built in React usually use a framework like Next.js.

· CEO & Design Director

Copywriter, designer and developer, and founder of Designify Studio. Over five years, 60+ projects across 14+ industries, for startups that have raised $300M+.

Want this done for you? Website, $8,000.

A multi-page marketing site, written and designed by us, developed in Next.js and animated. $8,000, one-time, up to 6 pages. Book a free 30-minute call to see if it fits.

Schedule Call