RSS(RDF Site Summary or Really Simple Syndication) feed is an XML file for subscribers to fetch recently updated content. It is a specific page on a website(usually /rss.xml) which returns all, or part of a website’s content in a listed structured XML format.
Why do you need an RSS feed
RSS feed is an important part of any website that has frequent updates. With RSS, your subscribers can easily get your new update and have immediate interaction on it.
To do so, we just need to generate the xml file in getStaticProps which is called at building time and write the result of generateRss into the public directory.