Skip to content

Commit

Permalink
fix(gatsby-source-wordpress): only diff wpgraphql schema if the user …
Browse files Browse the repository at this point in the history
…opts in (#38856) (#38860)

* only diff wpgraphql schema if the user opts in

* Update config.yml

---------

Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
(cherry picked from commit 5bd4c25)

Co-authored-by: Tyler Barnes <tylerdbarnes@gmail.com>
  • Loading branch information
gatsbybot and TylerBarnes authored Feb 21, 2024
1 parent b4ce9e6 commit 85f6c90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ jobs:
nvm install 18.0.0
nvm alias default 18.0.0
nvm use 18.0.0
choco install yarn
choco install yarn -y
- run:
name: Rebuild packages for windows
command: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,8 @@ function mergeDuplicateTypesAndReturnDedupedList(typeDefs) {
* This is to catch and add helpful error messages for when an inconsistent schema between builds is inadvertently created due to some bug
*/
export async function diffBuiltTypeDefs(typeDefs) {
if (
process.env.NODE_ENV !== `development` &&
process.env.WP_DIFF_SCHEMA_CUSTOMIZATION !== `true`
) {
// only diff the schema if the user has opted in
if (process.env.WP_DIFF_SCHEMA_CUSTOMIZATION !== `true`) {
return
}

Expand Down

0 comments on commit 85f6c90

Please sign in to comment.