Skip to content
Discussion options

You must be logged in to vote

Hi, in serverless deployments such as Vercel's, the use cache directive uses an in-memory storage.

When the instance that served your request is done, and shut down, the memory goes away with it. Notably, if you create or revalidate a static shell in this instance, you do get persistence side-effect via ISR.

To make it persistent across instances, use use cache: remote.

If you were self-hosting, or provided a different handler, https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheHandlers, for use cache (defau…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@MaxVhanamane
Comment options

@icyJoseph
Comment options

Answer selected by MaxVhanamane
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants