You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Payload and I couldn't work out the recommended way to go about triggering sending a webhook request to a hosting service like Vercel to trigger a new build when data changes.
I had a look at the 'collection hooks' – I guess I could send a request over inside the 'afterChange' hook. But what if I want to do this whenever any of my models change? Is this where the 'globals' come in? (https://payloadcms.com/docs/hooks/globals)
The example that's provided seems to have what looks like a filter so that it only triggers when certain fields change (?):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm new to Payload and I couldn't work out the recommended way to go about triggering sending a webhook request to a hosting service like Vercel to trigger a new build when data changes.
I had a look at the 'collection hooks' – I guess I could send a request over inside the 'afterChange' hook. But what if I want to do this whenever any of my models change? Is this where the 'globals' come in? (https://payloadcms.com/docs/hooks/globals)
The example that's provided seems to have what looks like a filter so that it only triggers when certain fields change (?):
Not sure if I'm reading that right, but if so, is it possible to set this up in such a way that it runs for everything?
Any guidance would be greatly appreciated, thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions