Gatsby-source-contentful proxy settings

  Kiến thức lập trình

How can I set the body length and content length in the gatsby-source-contentful plugin.

'maxContentLength': Infinity, 'maxBodyLength': Infinity

Plugin configuration in gatsby-config.js file

module.exports = {
  plugins: [
      resolve: `gatsby-source-contentful`,
      options: {
        spaceId: `your_space_id`,
        // Learn about environment variables:
        accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,

I tried setting maxContentLength and maxBodyLength as proxy inside options. Getting an error as invalid plugin options.

New contributor

Monika Anabathula is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.