About The Project
Inspired by Phil Hawksworth's Jamstack Comments Engine. Uses 📬 email for comment moderation.
Configuration
Environment Variables
NETLIFY_PAT
- personal access token for Netlify APINETLIFY_API_ID
- API ID from the Settings page. This is the Site ID.APPROVED_COMMENTS_FORM_ID
- form ID of the form where approved submissions are movedSENDGRID_API_KEY
- key received from Sendgrid
Email Web API
I use Sendgrid. They have a free 100 mail/day limit (pretty generous) and a JavaScript library for communicating with their API.
- Configure the
SENDGRID_API_KEY
as listed above. - Then update
ownerEmail
andsiteName
in thenotify-owner.js
function.
See It In Action
This article has a comment already. You are free to make a new comment for testing purposes. I'll approve it when I can, and the site will rebuild automatically.