Skip to content

Commit

Permalink
docs: add reintroduced contentfulClientConfig to the plugin validation
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Mar 16, 2021
1 parent 1226330 commit 6da14b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-source-contentful/README.md
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions packages/gatsby-source-contentful/src/gatsby-node.js
Expand Up @@ -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(),
})
Expand Down

0 comments on commit 6da14b6

Please sign in to comment.