Use an RSS feed as a source for gridsome
yarn add gridsome-source-rss
npm install gridsome-source-rss
module.exports = {
plugins: [
{
use: "gridsome-source-rss",
options: {
feedUrl: "https://hnrss.org/frontpage",
typeName: 'HNFrontpageItem',
// Parser options, see: https://www.npmjs.com/package/rss-parser
parser: {}
}
},
],
}
URL of the feed.
Type name of the collection, defaults to FeedNode
.
Parser options, see the rss-parser
documentation. Can be used to set e.g. HTTP headers.