Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

NextJS On-Demand Revalidation

default discord avatar
hzk13372 years ago
2

First up, sorry if it was asked often already, I couldnt find a definitive answer.


Am I correct in the assumption that to use the NextJS On-Demand Revaldiation (

https://beta.nextjs.org/docs/data-fetching/revalidating

) the best approach would be to use the afterChange, onDelete,... etc. (or does afterChange include deletions as well) hooks from Payload in the respective collections?


Thanks in advance! 🙂

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.