Contentful on Next.js and Astro, with drafts editors can see
Contentful suits teams with several sites, many editors or strict roles. We design the content model, connect it to your front-end and set up preview so editors are not guessing.
How we set it up
The method depends on where your site is built. Here is what we use for Contentful on each platform.
Framer
Framer has its own native CMS and no official Contentful plugin we would rely on. If Contentful must stay the source, we sync entries into Framer CMS collections via a sync plugin or API. For most Framer sites, moving content into Framer CMS is simpler.
Framer development Via APIWebflow
Webflow has a native CMS, so Contentful usually means duplicating content. When it is required, we sync entries into Webflow collections with the Webflow CMS API and a Contentful webhook. Expect to work within Webflow’s collection and field limits.
Webflow development Official SDKAstro
On Astro we use Contentful’s JavaScript SDK, as in Astro’s own Contentful guide, to fetch entries at build time and render rich text to HTML. A Contentful webhook triggers a rebuild on publish. For draft preview we add a server-rendered preview route using the Preview API.
Astro development Official SDKNext.js
On Next.js we use the Contentful JavaScript SDK in server components, with Draft Mode for previews and on-demand revalidation from a Contentful webhook. Editors see drafts on a preview URL, and published changes reach the live site within seconds.
Next.js developmentWhat teams use it for
Multi-site content
One content hub feeding a marketing site, docs and regional sites, each with its own front-end.
Localized marketing
Field-level locales so translators work in Contentful and pages build per language.
Governed publishing
Roles and environments so legal or brand can approve before anything is published.
What to watch out for
Delivery and preview tokens are different. The preview token reads drafts, so it must never reach the browser of a public visitor.
Deeply linked entries mean many requests. We limit include depth and fetch at build time or cache on the server.
A loose content model becomes hard to change later. We agree content types and validations before editors start filling them.
Questions about Contentful
How do I preview Contentful drafts in Next.js?
How do published changes reach a Next.js site?
Can Webflow use Contentful?
Contentful or another headless CMS?
Does Contentful have an Astro integration?
How long does a Contentful setup take?
Thomas OldenburgerFounder, design and build leadStill deciding? A 30-minute call answers most of it.
Related integrations and services
Sanity
A headless CMS with a customizable editing studio, real-time collaboration and structured content.
OpenStoryblok
A headless CMS built around a visual editor and reusable content blocks.
OpenKeystatic
An open-source CMS that stores content as files in your Git repo, with an editing UI on top.
OpenNext.js development
Headless CMS builds on Next.js, with preview and revalidation.
OpenHeadless CMS
Glossary definition.
Open