Generate RSS Feeds from sources that don't have one.
Feed | Uptime | Path | Link |
---|---|---|---|
Groww Digest - Daily | /.netlify/functions/rss-groww |
rsstree.netlify.app/.netlify/functions/rss-groww | |
Bytes - The Best JavaScript Newsletter | /.netlify/functions/rss-bytes |
rsstree.netlify.app/.netlify/functions/rss-bytes |
Demo images | |
---|---|
- node and npm
- netlify cli installed globally
Steps:
netlify init
netlify functions:create --name <func-name>
npm install
touch .env # Put all environment variables here
netlify functions:serve
Testing
# when caching with last-modified header
curl 'http://<host>/.netlify/functions/<func>' -Is | grep -i 'last-modified'
curl 'http://<host>/.netlify/functions/<func>' -H 'If-Modified-Since: <last-modified>' -I
# when caching with etag header
curl 'http://<host>/.netlify/functions/<func>' -Is | grep -i 'etag'
curl 'http://<host>/.netlify/functions/<func>' -H 'If-None-Match: "<etag>"' -I