NextJS On-Demand Revalidation

default discord avatar
8 months ago

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 (

) 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! 🙂

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.