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

feat(gatsby): add initial webhook body env var to bootstrap context #37478

Merged
merged 3 commits into from
Jan 19, 2023

Conversation

TylerBarnes
Copy link
Contributor

Some source plugins rely on the webhook body to work properly for preview (source-wordpress for ex grabs a jwt from the webhook body). The webhook body can be lost on initial builds if Gatsby isn't running when a user previews. This PR adds an env var to get initial webhook body values from an env var so they can be passed through when first starting Gatsby.

@TylerBarnes TylerBarnes requested a review from pieh January 16, 2023 19:57
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jan 16, 2023
@TylerBarnes TylerBarnes requested a review from LekoArts January 16, 2023 19:57
@TylerBarnes TylerBarnes added topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jan 16, 2023
DanielSLew
DanielSLew previously approved these changes Jan 16, 2023
pieh
pieh previously approved these changes Jan 16, 2023
@TylerBarnes TylerBarnes dismissed stale reviews from pieh and DanielSLew via 9459d4e January 16, 2023 22:44
@TylerBarnes TylerBarnes merged commit 000e23e into master Jan 19, 2023
@TylerBarnes TylerBarnes deleted the feat/initial-webhook-body branch January 19, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants