Commit Graph

2 Commits

Author SHA1 Message Date
Serge RAKOTO HARRY-NAIVO
c27a9ea805 chore(worker): wire up real KV ID + workers_dev=true + harden getNextRef
- wrangler.toml: workers_dev=true (= explicit routing on *.workers.dev)
- wrangler.toml: real KV ID c02656ba2206... after `wrangler kv namespace create WELCOME_KV`
- hubspot-proxy.js getNextRef: guard `!res.ok` before res.json() to surface HubSpot errors
- .gitignore: ignore .wrangler/ local cache dir

Discovered during Phase D2-D3 deploy + smoke testing.

Refs: WordPress \xe2\x86\x92 static migration plan, Phase B PR #3a.
2026-05-07 14:25:25 +02:00
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