Home Tags JSON2RSS


Implement an RSS feed from JSON to XML in Gatsby.js

The first step is to call your API data using Axios. You can install Axios by running $ npm install axios in your terminal, and then you require it at the top of our file:const axios = require('axios').default;exports.onPostBuild = async () => { const rssFeed = () => axios.get('<your API endpoint>');...