0.0.8 • Published 5 years ago

gatsby-source-hcms v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

gatsby-source-hcms

Source plugin for pulling documents into Gatsby from a hCMS API.

Install

npm install --save gatsby-source-hcms

How to use

Set environment variable to define project

export PROJECT_SLUG=my-blog
// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-hcms`,
    options: {
      apiURL: `http://localhost:8080/api/v1`,
      // JWT to authenticate with
      key: 'secret'
    },
  },
]

How to query

You can query Document nodes created from your hCMS API like the following:

{
  allHcmsPage {
    edges {
      node {
        title
        slug
      }
    }
  }
}
0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago