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?
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?