Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for INCOMING_HOOK_** Variables #49

Open
ONeill45 opened this issue May 20, 2022 · 0 comments
Open

Support for INCOMING_HOOK_** Variables #49

ONeill45 opened this issue May 20, 2022 · 0 comments

Comments

@ONeill45
Copy link

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.

Screen Shot 2022-05-20 at 4 08 40 PM

Screen Shot 2022-05-20 at 4 08 59 PM

Screen Shot 2022-05-20 at 4 08 23 PM

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant