Skip to main content
ampliflow
Back to Read
Next.js Development25 November 202611 min read

Headless CMS for Next.js: how to choose Sanity or an alternative

Paper collage of a hand positioning a landscape picture on a desktop page beside a mobile layout showing the same picture.
Editorial illustration.

Choose a headless CMS for Next.js by asking the person who edits your site to change one real page. If most changes mean correcting a fact used in several places, start with Sanity. If marketing spends its week assembling campaign pages, try Storyblok or Prismic first. If editors already work happily in WordPress, give keeping it a fair trial.

A content management system (CMS) is where people write, review and publish. Headless means that the editing system supplies content to a separate website. In this case, Next.js is the software your developers use to build that website. Your choice concerns the work on either side of the publish button. Who can change what, how do they check it, and who looks after the connection? WordPress explains how a separate website can use CMS content.

What does your team actually change in a normal week?

Look at the last few requests your marketing team handled. A correction to a branch address, the launch of a new service and the approval of a Welsh translation might all appear in your records as “website update”. They call for quite different editing tools.

Take the address. If it appears on a contact page, a service page and a booking page, would you expect a colleague to change it once or three times? For the service launch, can the editor choose the order of the sections? For the translation, can the Welsh editor sign it off while a change to the English copy is still under discussion?

Pick the task that matters most and bring the actual words, images and approval instructions to the demonstration. An anonymised copy will do. Give the keyboard to the colleague who normally does the work. Write down where they hesitate, where they need a developer and where the software lets them make a change they should have to refer to someone else.

If you are still deciding whether your business needs a separate public website and editing system at all, settle that question first. Our comparison of Next.js and WordPress for business websites covers that earlier decision.

Which CMS deserves a place on your shortlist?

Pick two candidates whose strengths match your hardest regular job. Give them the same brief. The suggestions below are starting points for that trial.

Sanity for facts you want to maintain once. Sanity lets an editor select a reference, a link to another content record. A branch could have its own record, and each service could refer to the branch that delivers it. Ask the editor to correct an address, then check every page that uses it. Also ask what happens if somebody tries to delete the branch while services still refer to it. Sanity documents how its strong references protect against that deletion. Sanity reference documentation.

Contentful for teams publishing in several languages or markets. Contentful calls a language and region combination a locale. Its documentation describes publishing all locales together or publishing selected locales separately, depending on the configuration. Give it a bilingual page where only the English text has approval. Ask which publishing mode and plan the proposal includes, then watch the editor release that correction while leaving the other version alone. Contentful localisation documentation.

Storyblok for editors who want to point to the part of a page they need to change. Its Visual Editor connects a block, such as a banner or a card, with its position in the page preview. An editor can select an element in the preview to open the corresponding block. Try a page with three similar cards. Can a colleague find the right one, change its image and see the result? Ask to do this on the proposed Next.js layout because the developer has to connect it to the editor. Storyblok Visual Editor documentation.

Prismic for campaigns built from a set of repeatable sections. Prismic calls those sections slices. A page type defines the kind of page and the slices available to build it. Give an editor a campaign brief and ask them to assemble it from the proposed set. Then bring out last month's awkward campaign. Could the same sections accommodate its comparison or long quotation? That tells you which design work to include before buying. Prismic’s guide to page types and slices.

Payload for a team that wants to choose and run its own hosting. Payload is open source, meaning its source code is available under an open licence, and supports self-hosting. Its deployment guide distinguishes the running application, the database and permanent storage for files. Ask the proposed operator to explain how they would recover yesterday's article and its photographs. Shortlist this route when you can name someone willing to take responsibility for those systems. Payload production deployment documentation.

Headless WordPress for an established WordPress editorial team. Editors continue working in WordPress. Its application programming interface (API), a way for software to exchange information, makes content available to a separate site. Pick the page in your current site that depends most heavily on a plugin, an extension that adds a feature. Ask to see its content, preview and visitor experience in Next.js. Keeping the place where staff write only solves part of that job. WordPress REST API handbook.

Ampliflow sells Next.js website development. Our own website runs on Next.js with Sanity as its CMS. When we publish, Sanity sends a notification called a webhook. That triggers revalidation, which tells the site to refresh its saved copy. Once you have chosen an editor, the next decision is how to check that an approved change has reached readers. Our guide to CMS publishing, caching and revalidation follows that process.

How much freedom should editors have over a page?

Draw a line down a sheet of paper. On the left, list the things your team should maintain in one place, such as branch details, author biographies or course dates. On the right, list the decisions a page editor should make afresh, such as the opening paragraph or the order of two sections. This is the start of your content model, the description of what you store and how the pieces relate. Sanity’s introduction to content models.

Consider a hypothetical training provider. The course organiser owns the venue address. Marketing writes an introduction for each campaign. It makes sense to reuse the venue record but let editors change the introduction freely. A past event raises a different question. Should its page show the venue as it was on the day, even after the organiser moves? Agree that rule before treating every repeated address as the same piece of content.

Ask the supplier to build just enough of this example to reveal the boundary. Have the editor add a second venue and find the original by name. Give both venues similar names. If staff need to open several records to tell them apart, change the labels or the information shown in the picker. A small adjustment there is worth discussing before your team enters the rest of the directory.

What should the preview and approval test include?

A preview is the version a reviewer sees before publication. Use an ordinary editor account for the trial. A supplier presenting from an administrator account can show where the buttons are, but your decision depends on what your own colleagues will see and be allowed to do.

  • Draft a recognisable correction. Change a heading and replace a photograph. Ask a colleague to open the public page separately while you work. They should still see the approved version.
  • Check the awkward layout. Use a long heading, a portrait photograph and a narrow phone screen. Ask the reviewer to identify the exact draft they approve and show the editor how to fix a poor crop.
  • Hand the draft to the right person. Have the writer request a review. Ask the writer to try publishing and the approver to return the draft with a reason. Compare both experiences with your actual approval policy.
  • Withdraw a mistake. Give the approver a correction to make after publication. Have them find the earlier wording and show who would check the affected pages before the team closes the task.

For localisation, add one more decision. If a translation is missing, should a visitor see the English version, a message in their chosen language or no link to that page yet? Give the reviewer a page with a translated heading and an untranslated download. Ask them to spot that mismatch and show how they would hold it back without delaying unrelated work.

Who will host the content and where will it go?

Hosting means running the systems that store your material or serve it to readers. Ask for a short account of where the published website runs, where unpublished text and original images are stored, and where backups are kept. Give the supplier a specific example, such as an embargoed product photograph, and ask them to trace its journey from upload to deletion.

If your organisation requires UK storage, write down which material that requirement covers. Get the proposed locations for that material in writing, including backup copies. Ask separately where support staff may access it from. Give those answers to the person who owns your organisation's purchasing requirements. A map showing the server closest to your visitors leaves those questions open.

Put a person's name beside account ownership, updates, backups and recovery. Imagine the relationship with the original developer ends on a Friday. On Monday, could a colleague sign in under a business-controlled account, find the hosting agreement and authorise a replacement developer to help? Include the people who can approve the bills in that exercise.

How should you compare the ongoing cost?

Give each supplier the same working example. Describe your current editors, reviewers, languages, image library and publishing pattern. Include the change you genuinely expect next, perhaps a second brand sharing the library or a seasonal team of freelance writers. Ask for the cost of running both versions of the business and the assumptions behind each answer.

For a hosted CMS, check the vendor's current pricing page. Ask which users count towards a paid allowance, which permissions your plan includes, how usage is measured and what happens when you reach a limit. For self-hosting, ask for the hosting, file storage, maintenance and recovery work to be identified separately. For either model, ask who pays for a developer when marketing needs a new kind of page.

Keep the one-off migration and setup work visible alongside the running costs. Two proposals may use the same CMS and still buy you different working arrangements. Our UK guide to comparing Next.js website costs helps you read the wider quote. When preparing a supplier brief, use the Next.js development service overview to put the CMS decision in the context of the website build.

How would you move your content in and take it out again?

Choose a small but awkward sample from your current site. Include a page with a download, one with links to other pages and one with an image caption or translation. Get the supplier to import the sample. Then have an editor correct it. A page that looks right on arrival may still leave the editor copying text into an unfamiliar field to make a routine change.

Repeat the exercise in reverse before you commit. Ask for an export and the original files. Give them to someone who did not build the trial and ask them to match a photograph to its caption, an English page to its translation and a service to its branch. Record whatever they had to ask the supplier to explain. That is a practical measure of lock-in, the work involved in leaving a system you have come to depend on.

For an existing WordPress site, include the old page addresses in that sample. Decide which should stay and where a visitor should land if an address changes. Our WordPress to Next.js migration checklist covers the move in more detail. Keep the sample and the editor's findings with the purchase decision so the delivery team knows what it has agreed to reproduce.

Frequently asked questions

Is Sanity the best starting point for a small team?

Start with the shape of the work. A single editor maintaining a directory may value shared records more than a large marketing team running independent campaigns. Ask the editor to correct one shared fact and explain which pages should change. If nobody needs that sort of reuse, try building a typical campaign page before settling on Sanity.

How do we choose between Storyblok and Prismic?

Use a recent campaign brief and the same approved designs. In Storyblok, watch how the editor finds and changes a particular item in the preview. In Prismic, watch them select and arrange slices to build the page. Let the editor repeat the job unaided and tell you which decisions felt clear and which needed explanation.

Do we have to move every WordPress article before launch?

Decide what the launch needs. Ask for one plan that keeps WordPress as the editing system and another that moves a representative section. Compare what your team would need to maintain during the transition, who owns each page and how readers reach older material. Include the cost of finishing the move if you choose a staged approach.

What evidence should we keep when two systems both pass?

Keep the editor's completed task, the approver's decision, the cost assumptions and a sample export. Ask the person who will own the site which unresolved issue they could live with and who would handle it. If the remaining question concerns the supplier's ability to deliver the agreed setup, use the guide to choosing a Next.js development agency to assess that separately.

Focused first step

Clarity before complexity

Get unstuck

We start with a focused clarity chat so the report is based on your real bottlenecks, current situation, and commercial priorities.

Full digital presence audit
AI opportunity assessment
Custom growth roadmap
Report after your clarity chat
Get unstuck

The report is prepared after the chat if there is a sensible fit.