@gridsome/source-contentful

Contentful source for Gridsome. This package is under development and API might change before v1 is released.

Install

  • yarn add @gridsome/source-contentful
  • npm install @gridsome/source-contentful

Usage

// gridsome.config.js

module.exports = {
  plugins: [
    {
      use: '@gridsome/source-contentful',
      options: {
        space: 'YOUR_SPACE', // required
        accessToken: 'YOUR_ACCESS_TOKEN', // required
        host: 'cdn.contentful.com',
        environment: 'master',
        typeName: 'Contentful'
      }
    }
  ]
}