A Cloudflare Worker that manages DAO DAO's email queue. This rate-limits emails to AWS SES according to the limits.
npm run dev
# OR
wrangler dev --local --persist
-
Copy
wrangler.toml.example
towrangler.toml
. -
Setup queue and update bindings in
wrangler.toml
:
npx wrangler queues create emails
- 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
wrangler publish
# OR
npm run deploy