From 6da14b6a43bc9971fe108b8240e935c629c0c002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Tue, 16 Mar 2021 13:12:38 +0100 Subject: [PATCH] docs: add reintroduced contentfulClientConfig to the plugin validation --- packages/gatsby-source-contentful/README.md | 2 +- packages/gatsby-source-contentful/src/gatsby-node.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-source-contentful/README.md b/packages/gatsby-source-contentful/README.md index 10b2642af2b1d..3b475d21e026b 100644 --- a/packages/gatsby-source-contentful/README.md +++ b/packages/gatsby-source-contentful/README.md @@ -183,7 +183,7 @@ Number of workers to use when downloading Contentful assets. Due to technical li Additional config which will get passed to [Contentfuls JS SDK](https://github.com/contentful/contentful.js#configuration). -Use this with caution, you might override values this plugin sets for you to connect to Contentful. +Use this with caution, you might override values this plugin does set for you to connect to Contentful. ## Notes on Contentful Content Models diff --git a/packages/gatsby-source-contentful/src/gatsby-node.js b/packages/gatsby-source-contentful/src/gatsby-node.js index bfc4d6e269bdf..d91e022e45cf6 100644 --- a/packages/gatsby-source-contentful/src/gatsby-node.js +++ b/packages/gatsby-source-contentful/src/gatsby-node.js @@ -134,6 +134,13 @@ List of locales and their codes can be found in Contentful app -> Settings -> Lo If you are confident your Content Types will have natural-language IDs (e.g. \`blogPost\`), then you should set this option to \`false\`. If you are unable to ensure this, then you should leave this option set to \`true\` (the default).` ) .default(true), + contentfulClientConfig: Joi.object() + .description( + `Additional config which will get passed to [Contentfuls JS SDK](https://github.com/contentful/contentful.js#configuration). + + Use this with caution, you might override values this plugin does set for you to connect to Contentful.` + ) + .default(true), // default plugins passed by gatsby plugins: Joi.array(), })