sanity-live-cache-components

Installation
SKILL.md

Sanity Live + Cache Components (next-sanity@cache-components)

Use next-sanity@cache-components with Next.js 16+ cacheComponents: true to get Partial Prerendering with Sanity Live. This replaces the automatic draftMode() behavior with explicit perspective, stega, and includeDrafts passing.

Canary release -- not yet stable, may have breaking changes in minor/patch releases.


1. Install

npm install next-sanity@cache-components --save-exact

Requires next@16+.


2. Configure next.config.ts

Related skills
Installs
19
GitHub Stars
947
First Seen
Mar 31, 2026