Skip to content

Yuri2b/gatsby-source-onlinesales

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-source-onlinesales

Downloads posts data from OnlineSales backend And saves them to be processed later with gatsby-transformer-remark

Install

npm install gatsby-source-onlinesales

How to setup

{
	resolve:  "gatsby-source-onlinesales",
	  options: {
			prepareUrl: (url) => (url.startsWith("http") ? url : "${process.env.GATSBY_URL}${url}"),
			url:  "${process.env.GATSBY_API_POSTS}",
		},
},

Options

postUrl : url to query posts for example: https://onlinesales.test/api/posts prepareUrl: method to process images link with

Supported versions

ASCII
Gatsby 5 Unknown
Gatsby 4 Supported
Gatsby 3 Unknown

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%