Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 698 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 698 Bytes

emailer-cf-worker

A Cloudflare Worker that manages DAO DAO's email queue. This rate-limits emails to AWS SES according to the limits.

Development

Run locally

npm run dev
# OR
wrangler dev --local --persist

Configuration

  1. Copy wrangler.toml.example to wrangler.toml.

  2. Setup queue and update bindings in wrangler.toml:

npx wrangler queues create emails
  1. Configure secrets:
echo <VALUE> | npx wrangler secret put AWS_REGION
echo <VALUE> | npx wrangler secret put AWS_ACCESS_KEY_ID
echo <VALUE> | npx wrangler secret put AWS_SECRET_ACCESS_KEY

Deploy

wrangler publish
# OR
npm run deploy