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! 🙂
you got it 👍 here's our setup for Payload's website although we've since migrated to Next.js
app
directory so our front-end needs to play catch-up. Check it out:
https://github.com/payloadcms/website-cms/blob/main/src/collections/Pages.ts#LL46C17-L46C17Great, thanks a lot! 🙂
Star
Discord
online
Get dedicated engineering support directly from the Payload team.