Lightlines
By sanity-io

sanity-live-cache-components

sanity-io515 installs

Live Sanity content in your cached Next.js app.

What it does

Integrates Sanity live content and draft previews into a Next.js app using shared cached fetching and prerenderable component patterns.

When to use it

Use when configuring or migrating a Next.js app to Cache Components with Sanity, adding sanityFetch, wiring live updates and Visual Editing, or refactoring hardcoded fetching options.

How to use it

Give it an existing Next.js app; it configures Sanity live fetching, cached components, draft handling, and Visual Editing in the project.

What you provide

  • An existing project

Uses

Good to know

  • cannot be undone: Sanity
  • edits its own instructions

Latest review

What you need · 4

Requires Next.js 16.3+ installed in the project because the official companion skills require that version.

Uses its per-route verification loop and success criteria when removing deferred Sanity route opt-outs during migration.


Access · 4

This skill

Sanity

Write

Edits published Sanity content (irreversible)

Sanity Content Lake

Read

Reads live Sanity content