-
So hi again. I need to use webhooks to re-deploy my repo on vercel and fetch the latest data. I tried to use the afterChange hook in the payload.config file, but unfortunately it did not work.
The documentation is a bit fuzzy on that one, What can I use? My code looks like this:
Any ideas or recomendations on how to do that? Have a nice weekend! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That hook is specific to fields, collections, and globals. My suspicion is that you might be applying it to the top level config. Try it on a collection basis? |
Beta Was this translation helpful? Give feedback.
That hook is specific to fields, collections, and globals. My suspicion is that you might be applying it to the top level config. Try it on a collection basis?