1.0.0 • Published 6 years ago
gatsby-source-json v1.0.0
Pull data from a JSON API endpoint and turn into Gatsby nodes
Install
npm i gatsby-source-json
Usage
plugins: [
resolve: 'gatsby-source-json',
options: {
// name the gatsby node
name: 'Articles',
// url for JSON endpoint
uri: 'www.example.com/example.json',
// Basic Auth if required (optional)
auth: {
username: 'userename',
password: 'password'
},
// image location to process images. Default: "image.url"
image_location: "image.url",
}
]
1.0.0
6 years ago