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(source-contentful) add possibility to define search parameters in config #1331

Merged
merged 4 commits into from
Sep 10, 2020
Merged

fix(source-contentful) add possibility to define search parameters in config #1331

merged 4 commits into from
Sep 10, 2020

Conversation

helloiamlukas
Copy link
Member

This will solve #748

Previously the Contentful source only returned the default locale of a field. As mentioned in the Contentful docs, the search parameter locale=* has to be provided to return all locales of a field.

With the changes in this pull request, you can now define search parameters in the plugin configuration.

{
   use: '@gridsome/source-contentful',
   options: {
      space: process.env.CTF_SPACE_ID,
      accessToken: process.env.CTF_ACCESS_TOKEN,
      host: 'cdn.contentful.com',
      environment: 'master',
      typeName: 'Contentful',
      parameters: {
         locale: '*'
      }
   }
}

@helloiamlukas helloiamlukas changed the title add possibility to define search parameters in config fix(source-contentful) add possibility to define search parameters in config Sep 6, 2020
helloiamlukas and others added 2 commits September 8, 2020 15:18
don't override internal parameters

Co-authored-by: Hans-Jørgen Vedvik <hjvedvik@gmail.com>
@hjvedvik
Copy link
Member

Looks good now, @helloiamlukas :) Thanks for the PR!

@NicholasRowe
Copy link

What is the latest with #1341 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants