Using npx
with Node.js, you can run GitHub Gist scripts. This is a script to
For example, if you have a JSON file in a repo and its URL is https://raw.githubusercontent.com/TwenteMe/data/master/redirects.json, use:
npx https://gist.github.com/AnandChowdhary/bf1dce1400a6fc86afd1921085feff93 https://raw.githubusercontent.com/TwenteMe/data/master/redirects.json
This will generate a _redirects
file for server-side redirects on Netlify.