![]() In the getStaticPaths we call getRSSFeeds and transform the list of feeds from the Airtable DB to the list of paths. ![]() The code for this is in the getStaticProps function. Here we need to import the rss-parser lib which will let us read a string with RSS in XML and return an object with the data from the feed. We need to fetch our list of feeds, I have a function getRSSFeeds like this one: import Airtable from "airtable" Įxport async function getRSSFeeds(limit = 100): Promise Next.js as the framework to build the UI and fetch dataįirst of all, we need a way to store our list of RSS feed, this could be a JSON in the repository or any database, I used Airtable.Airtable as my DB, I need it to have a list of feeds I can update without re-deploying.The stack I used is the same of this blog, Airtable, Next.js and Vercel. Let's see how you can build one yourself and host it for free. I used Feedly since 2005, until now, I build my own RSS Reader and you can see it clicking Reader in the navigation. When Google killed it to promote Google+ (which was also killed) other tools started to compete but most of them are not as good Google Reader was or they are pay ones. Years ago, Google Reader was the best tool in the market to consume RSS. RSS is a standard way to use XML to share content from a website so other apps could read it and show it in a different format. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |