Files
deepstock/worker/wrangler.toml
Dorian 7e4da32c0c feat: add Cloudflare email worker and template updates
Worker (worker/) renders and sends the plan email via Resend, with
the matching email-template.html and a VITE_WORKER_URL example env.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 14:53:35 +01:00

15 lines
488 B
TOML

name = "planb-email"
main = "src/index.js"
compatibility_date = "2026-06-03"
[vars]
BRAND_NAME = "Plan-B"
SITE_URL = "https://plan-b.kammergut.example"
UNSUBSCRIBE_URL = "https://plan-b.kammergut.example/unsubscribe"
# Set these as Worker secrets before deploying:
# npx wrangler secret put RESEND_API_KEY --config worker/wrangler.toml
# npx wrangler secret put FROM_EMAIL --config worker/wrangler.toml
# Optional:
# npx wrangler secret put REPLY_TO_EMAIL --config worker/wrangler.toml