From 11a44595605e211076a61c57f789b201beaa51f4 Mon Sep 17 00:00:00 2001 From: Tyler Barnes Date: Fri, 16 Feb 2024 16:10:32 -0800 Subject: [PATCH 1/2] only diff wpgraphql schema if the user opts in --- .../src/steps/create-schema-customization/helpers.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js b/packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js index 940866b3e11fc..5a914ba086755 100644 --- a/packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js +++ b/packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js @@ -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 } From e3ba0c36a7fcf08111bada932408c05a0621da81 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Tue, 20 Feb 2024 12:37:17 +0100 Subject: [PATCH 2/2] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1d517795f434c..986e966a16a2d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: |