Skip to main content
Founding price $19/mo (regular $29) for the first 100 customers. →
sanityguides

Migrating from WordPress to Sanity + Next.js

The SrvBot team

Moving from WordPress to a Sanity + Next.js stack is a genuine re-platforming, not a plugin you install. It can be well worth it, a faster, more flexible, more maintainable site, but it helps to go in clear-eyed about what actually changes and what the work involves.

What changes

You’re splitting one thing into two. WordPress was your content store and your website. Now Sanity holds the content and a Next.js app is the website. Editors move from the WordPress admin to the Sanity Studio; developers move from themes and PHP to React components and structured content.

The content migration

The core task is moving your posts and pages into Sanity’s structured model. WordPress content is HTML-in-a-field; Sanity content is structured. Bridging that means writing a script that reads your WordPress data (via its API or an export) and maps it into Sanity documents, including converting post bodies into Sanity’s block format and re-uploading images as assets.

The parts that need rebuilding

Themes and plugins don’t come with you. Layouts get rebuilt as React components; plugin functionality is replaced by code or third-party services. This is the real cost of the move, and also where most of the benefit comes from, since you’re no longer constrained by the theme-and-plugin model.

Is it worth it?

For a simple blog that WordPress serves fine, probably not. For a site you’re actively growing, where you want speed, a custom front end, and content you can reuse across channels, the payoff is real, provided you budget for the rebuild realistically.

Where it lands

The result is a Next.js app plus a Sanity dataset, and that app needs a Node host. SrvBot runs exactly this stack, and can host the WordPress site during the transition, too. Details at /sanity and /migrate.

The bottom line

A WordPress-to-Sanity move is a project with a clear payoff for the right site, and a lot of unnecessary work for the wrong one. Be realistic about which you have. If it’s the right one, /sanity is where to start.