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, gatsby-plugin-utils, gatsby-source-wordpress, gatsby-source-contentful, gatsby-source-drupal): Add setRequestHeaders action/api #35655

Merged
merged 59 commits into from Jun 2, 2022

Conversation

TylerBarnes
Copy link
Contributor

@TylerBarnes TylerBarnes commented May 13, 2022

This PR adds a new public action setRequestHeaders for source plugins to use. Any headers set with this action are set for a specific base domain and then Image CDN picks up these headers and uses them when making requests for images/files from that domain.

Fixes #35151

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 13, 2022
@TylerBarnes TylerBarnes removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 13, 2022
@TylerBarnes TylerBarnes marked this pull request as ready for review May 17, 2022 22:47
@TylerBarnes TylerBarnes requested a review from veryspry May 18, 2022 01:08
@TylerBarnes TylerBarnes requested a review from veryspry May 18, 2022 15:48
veryspry
veryspry previously approved these changes May 26, 2022
@TylerBarnes
Copy link
Contributor Author

TylerBarnes commented May 27, 2022

Hmm, I'm having trouble figuring out why tests are failing. It looks like the tests that are failing are unrelated but it also looks like those tests are only failing for this PR, so some change here must be breaking something else. I'll have to figure that out before we can merge this 🤔

Annoying too because it doesn't fail when running the tests locally

@TylerBarnes TylerBarnes requested a review from veryspry May 28, 2022 01:10
@TylerBarnes TylerBarnes requested a review from wardpeet May 30, 2022 18:13
@wardpeet wardpeet added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jun 1, 2022
@TylerBarnes TylerBarnes merged commit f520e59 into master Jun 2, 2022
@TylerBarnes TylerBarnes deleted the feat/get-request-headers branch June 2, 2022 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes 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.

Gatsby-source-wordpress not able to fetch image behind basic authenticate WordPress source
5 participants