Skip to content

Conversation

@stipsan
Copy link
Member

@stipsan stipsan commented Dec 18, 2025

pnpm install next-sanity@cache-components

next.config.ts:

import type {NextConfig} from 'next'
import {sanity} from 'next-sanity/cache-life'

const nextConfig: NextConfig = {
  cacheComponents: true,
  cacheLife: {
    sanity, // makes `cacheLife('sanity')` available
  },
} satisfies NextConfig

export default nextConfig

@vercel
Copy link

vercel bot commented Dec 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
next-sanity Ready Ready Preview, Comment Dec 19, 2025 5:39pm
next-sanity-static Ready Ready Preview, Comment Dec 19, 2025 5:39pm

@changeset-bot
Copy link

changeset-bot bot commented Dec 18, 2025

🦋 Changeset detected

Latest commit: 0b2314c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Co-authored-by: squiggler[bot] <128108030+squiggler[bot]@users.noreply.github.com>
squiggler bot and others added 2 commits December 19, 2025 17:56
Co-authored-by: squiggler[bot] <128108030+squiggler[bot]@users.noreply.github.com>
stipsan and others added 2 commits December 19, 2025 18:37
Co-authored-by: squiggler[bot] <128108030+squiggler[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant