1.0.24 • Published 6 years ago

gatsby-source-cockpit-headless-cms v1.0.24

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

You need to add the following to gatsby-config.js

  plugins: [			    
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `src`,
        path: `${__dirname}/src/`,
      },
    },
    {
      resolve: 'gatsby-source-cockpit-headless-cms',
      options: {
        cockpitConfig: {
          baseURL: 'http://localhost:8888',
          folder: '/cockpit',
          accessToken: '4d659efb084077fd24aeb4871d4386',
          collections: ['Post']
        },
      },
    },
  ],

note: The collections field is optional, if omitted the plugin will fetch all collections.