site-mva-global-fret/cloudflare-worker/wrangler.toml
Serge RAKOTO HARRY-NAIVO e4b4992e67 refactor(worker): migrate Brevo+EmailJS → Resend + remove cron + fix github.io URLs
- Replace Brevo HTTP API calls with Resend (api.resend.com/emails) — aligns with m4s-auth Phase 2.1 SMTP provider
- Remove scheduled handler and processWelcomeQueue (EmailJS cron */5 * * * *)
  → eliminates double-send race window identified in Phase 2 audit
- Rename sendWelcomeViaBrevo → sendWelcomeViaResend
- Fix 3 hardcoded GH Pages URLs (lines ~234, ~541, ~600) → mva-globalfret.com fallback
- Add wrangler.toml: KV binding placeholder, no [triggers] cron, secrets list
- Update DEPLOIEMENT.md: env vars list (Resend in, Brevo+EmailJS out)

DO NOT MERGE until new Cloudflare account + Worker deployment Phase D ready
(merge écarterait l'ancien Worker Melissa actif si on revenait dessus).

Refs: WordPress → static migration plan, Phase B PR #3a.
2026-05-07 00:11:10 +02:00

19 lines
494 B
TOML

name = "mva-hubspot-proxy"
main = "hubspot-proxy.js"
compatibility_date = "2026-04-01"
# KV namespace — placeholder ID, populated at deploy time (Phase D3)
[[kv_namespaces]]
binding = "WELCOME_KV"
id = "REPLACE_AT_DEPLOY_TIME"
# Required secrets to configure via `wrangler secret put` :
# - HUBSPOT_TOKEN
# - RESEND_API_KEY
# - RESEND_FROM_EMAIL
# - RESEND_FROM_NAME
# - PARIS_DEPOT_ADDRESS
# - TURNSTILE_SECRET
# - SITE_URL
# (BREVO_* and EMAILJS_* deprecated — removed in this version)