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

fix(gatsby-source-wordpress): Move the remote url !== options url check earlier in previews #32251

Merged

Conversation

TylerBarnes
Copy link
Contributor

@TylerBarnes TylerBarnes commented Jul 5, 2021

This check helps users who have misconfigured their Gatsby site and are trying to preview from a different WP instance than the one the Gatsby site is sourcing data from.

This check always existed but stopped working after a large preview scalability refactor. The check was running too late (after we made the request with incorrect credentials to pull pending previews) so it was never being hit. I moved it to be the first check in preview logic so it works again.

related: gatsbyjs/wp-gatsby#176

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 5, 2021
@TylerBarnes TylerBarnes added topic: source-wordpress Related to Gatsby's integration with WordPress and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jul 5, 2021
@LekoArts LekoArts merged commit 60955e9 into master Jul 6, 2021
@LekoArts LekoArts deleted the fix/wp-check-remote-url-is-correct-before-previewing branch July 6, 2021 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-wordpress Related to Gatsby's integration with WordPress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants