Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.22 KB

File metadata and controls

37 lines (28 loc) · 1.22 KB

'GatherContent & Gatsby'

gatsby-source-gathercontent

Source plugin for pulling content into Gatsby from GatherContent.

Install

npm install gatsby-source-gathercontent 

Configuration

We recommend using environment variables for your GatherContent configuration. You can learn more about using environment variables with Gatsby here.

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-gathercontent',
      options: {
        email: process.env.GATSBY_GC_EMAIL,
        apiKey: process.env.GATSBY_GC_API_KEY, // https://docs.gathercontent.com/reference#authentication 🔑
        projectId: process.env.GATSBY_GC_PROJECT_ID,
      }
    }
  ]
}

Learn more