gatsby-source-gathercontent
v1.0.1
Published
Gatsby source plugin for building websites using GatherContent as a data source
Downloads
7
Readme
gatsby-source-gathercontent
Source plugin for pulling content into Gatsby from GatherContent.
Install
npm install gastby-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
- Sourcing from GatherContent - a guide on querying with GatherContent.
- GatherContent Gatsby Starter - a starter project
- gathercontent.js - a helper library for getting content from GatherContent