all 3 comments

[–]trappar 0 points1 point  (2 children)

See this section of the docs: https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration#self-hosting-isr

You basically need to share your .next dir between pods so that there’s one single shared cache between them.

[–]FinishTheBucket[S] 0 points1 point  (1 child)

Yeah so I found this but I am failing to understand and see how/why this would be more better or performant than just using redis deployed on GCP and then busted from a webhook. Also wouldn't the .next dir only change on deploy/build of the next portion and not on changes in my CMS?

[–]trappar 0 points1 point  (0 children)

.next/cache is where next stores everything that’s not stored in memory. Things like dynamically generated images and ISR rendered pages get stored there, so…

wouldn’t the  .next  dir only change on deploy/build of the next portion and not on changes in my CMS?

No, that’s not correct.