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
Currently attempting to use the payload saved in INCOMING_HOOK_BODY to do some conditional logic in a deploy-succeeded function on my Gatsby site. The webhook is fired from Contentful which sends the appropriate payload. I am also able to echo the value of $INCOMING_HOOK_BODY during the build to confirm it is populated when the build is triggered by the webhook on Contentful.
However, I have been unable to make the value usable in my function after the deploy succeeds. I have tried to write it to a file, but it is always empty. I tried this package, and while it seems to work with the other build variables from Netlify, I am not having any luck with INCOMING_HOOK_BODY. Is it possible to add support for these variables?
The text was updated successfully, but these errors were encountered:
Currently attempting to use the payload saved in INCOMING_HOOK_BODY to do some conditional logic in a
deploy-succeeded
function on my Gatsby site. The webhook is fired from Contentful which sends the appropriate payload. I am also able toecho
the value of$INCOMING_HOOK_BODY
during the build to confirm it is populated when the build is triggered by the webhook on Contentful.However, I have been unable to make the value usable in my function after the deploy succeeds. I have tried to write it to a file, but it is always empty. I tried this package, and while it seems to work with the other build variables from Netlify, I am not having any luck with
INCOMING_HOOK_BODY
. Is it possible to add support for these variables?The text was updated successfully, but these errors were encountered: