Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

Latest commit

 

History

History
19 lines (12 loc) · 802 Bytes

File metadata and controls

19 lines (12 loc) · 802 Bytes

Open JAMstack Comments

Inspired by Phil Hawksworth's Jamstack Comments Engine. Uses 📬 email for comment moderation.

Configuration

Environment Variables

  • NETLIFY_PAT - personal access token for Netlify API
  • NETLIFY_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 moved
  • SENDGRID_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 and siteName in the notify-owner.js function.