Inspired by Phil Hawksworth's Jamstack Comments Engine. Uses 📬 email for comment moderation.
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
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_KEYas listed above. - Then update
ownerEmailandsiteNamein thenotify-owner.jsfunction.