Downloads posts data from OnlineSales backend And saves them to be processed later with gatsby-transformer-remark
npm install gatsby-source-onlinesales
{
resolve: "gatsby-source-onlinesales",
options: {
prepareUrl: (url) => (url.startsWith("http") ? url : "${process.env.GATSBY_URL}${url}"),
url: "${process.env.GATSBY_API_POSTS}",
},
},
postUrl
: url to query posts for example: https://onlinesales.test/api/posts
prepareUrl
: method to process images link with
ASCII | |
---|---|
Gatsby 5 | Unknown |
Gatsby 4 | Supported |
Gatsby 3 | Unknown |