1.0.0 • Published 5 years ago

gatsby-source-jsonapi v1.0.0

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

Gatsby Source JSONAPI

JSONAPI compliant source plugin for Gatsby

Installation

NPM

    npm i --save gatsby-source-jsonapi

Yarn

    yarn add gatsby-source-jsonapi

In gatsby-config.js:

  module.exports = {
    plugins: [
      {
        resolve: 'gatsby-source-jsonapi',
        options: {
          resource: 'product'
        }
      }
    ]
  };

Configuration Options

These options are passed directly to the Gatsby config as seen in the install section.

OptionDefaultDescription
resourcenone (required)Name of resource to be used from JSONAPI

Other options are available through environment variables set in an .env file. See Data bite for these options