Storyblok on Next.js and Astro, block by block
Storyblok lets marketers build pages from blocks while seeing the real site. We turn your sections into Storyblok components, so what editors drag in is what visitors see.
How we set it up
The method depends on where your site is built. Here is what we use for Storyblok on each platform.
Framer
Framer has a native visual editor and CMS, which overlaps with what Storyblok offers. We would only feed Storyblok content into Framer via a sync plugin or API when content must be shared with other front-ends.
Framer development Via APIWebflow
Webflow’s Designer and CMS already cover visual page building. Syncing Storyblok into Webflow collections via the Webflow CMS API is possible but rarely worth it. If you want Storyblok’s editor, a code-built front-end is the better match.
Webflow development Official integrationAstro
Storyblok’s official Astro integration fetches stories, maps each block to an Astro component and loads the bridge for the Visual Editor. We build static pages for speed and add a server-rendered preview so editors see changes live inside Storyblok.
Astro development Official SDKNext.js
On Next.js we use Storyblok’s React SDK with its server-component entry point. Each Storyblok block maps to a React component from your design system, the Visual Editor bridge runs only in preview, and publishing triggers on-demand revalidation.
Next.js developmentWhat teams use it for
Landing pages without developers
Marketers assemble campaign pages from approved blocks and see them live before publishing.
Multi-language sites
Field-level or folder-level translation, with each locale built as its own set of pages.
Design system in the CMS
The same components in Figma, in code and as Storyblok blocks, so pages stay on brand.
What to watch out for
The Visual Editor bridge script belongs in preview only. Shipping it to every visitor adds weight for no reason.
Too many block types make the editor confusing. We keep the library small and limit which blocks are allowed in each area.
The preview token can read drafts. Use the public token on the live site and keep the preview token on the server.
Questions about Storyblok
Storyblok or Sanity?
Can editors break the design?
Does Storyblok work with Framer or Webflow?
Which token goes on the live site?
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.
OpenContentful
An enterprise headless CMS with structured content, environments and roles for larger teams.
OpenKeystatic
An open-source CMS that stores content as files in your Git repo, with an editing UI on top.
OpenAstro development
Fast Astro sites with a visual CMS your marketers can run.
OpenHeadless CMS
Glossary definition.
Open