
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI understand you're evaluating 11ty vs Next.js for your Gatsby site migration with "as you type" preview as a key requirement. Let me give you the straight answer about 11ty with Sanity.
The short version: While you can technically set up preview with 11ty using its Serverless plugin, you won't get true "as you type" real-time preview out of the box like you would with Next.js. The 11ty Serverless plugin is designed for on-demand rendering (like for dynamic routes), but it doesn't have the same built-in preview infrastructure that frameworks like Next.js provide.
Why 11ty is challenging for real-time preview:
The 11ty Serverless plugin is primarily built for on-demand page generation on platforms like Netlify, but it's not designed specifically for CMS preview workflows. You'd need to:
This is all possible, but you're essentially building a custom preview system from scratch. You won't get the smooth "as you type" experience without significant custom development.
Why Next.js gives you what you need:
Sanity has first-class support for Next.js with Live Preview and Visual Editing that gives you exactly the "as you type" experience you're looking for. The Presentation Tool provides:
The setup is well-documented, supported, and works with both Next.js App Router and Pages Router.
My recommendation:
If instant preview is a hard requirement (and it sounds like it is), go with Next.js. You'll save yourself weeks of custom development trying to recreate what already exists. The Sanity + Next.js integration is battle-tested and gives you the exact "as you type" experience you need.
If you have other reasons for preferring 11ty (like static-first architecture or build simplicity), you could potentially use 11ty for your production builds and Next.js just for the preview environment, but that adds complexity.
The reality is that 11ty is an excellent static site generator, but it's not designed for the kind of real-time preview workflows that modern headless CMS setups require. Next.js (or Remix, Nuxt, SvelteKit) will give you a much better experience for this use case.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store