Next.js Discord

Discord Forum

Configure Data Cache to persist across requests, but not across deployments?

Unanswered
Tomistoma posted this in #help-forum
Open in Discord
TomistomaOP
Per Next.js docs Data Cache persists across requests and deployments:
https://nextjs.org/docs/app/building-your-application/caching#data-cache

In our project we want to fetch data from cms only during build and cache until the next deployment. When data in cms changes, it automatically triggers new deployment via webhook. I've checked all docs but didn't find appropriate option for that.
Do you know is it possible?

0 Replies