1.0.0 • Published 7 years ago
gatsby-source-jsonapi v1.0.0
Gatsby Source JSONAPI
JSONAPI compliant source plugin for Gatsby
Installation
NPM
npm i --save gatsby-source-jsonapiYarn
yarn add gatsby-source-jsonapiIn 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.
| Option | Default | Description |
|---|---|---|
| resource | none (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
1.0.0
7 years ago