Andrew Healey 5/8/2020

Adding Comments to Gatsby with Netlify Serverless Functions + GitHub

Read Original

This technical article details a method for implementing a comment system on a Gatsby static site without a database. It uses Netlify serverless functions to securely interact with the GitHub API, appending new comments to a `comments.json` file in the repository, which triggers a rebuild and redeploy. The post includes a code walkthrough of the serverless function and discusses potential downsides like spam.

Adding Comments to Gatsby with Netlify Serverless Functions + GitHub

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week