Small, provider-specific edge function examples for Mailgun. The project will host multiple platforms; Supabase Edge Functions are the first set.
- Supabase Edge Functions (current) — Deno runtime, minimal Mailgun integrations.
- More edge platforms will be added over time (e.g., Cloudflare, Vercel, Netlify) following the same one-file-per-example pattern.
supabase/functions/send-mailgun-email— POST to send a transactional email via Mailgun.
- Install the Supabase CLI and log in.
- Set secrets:
# Sending supabase secrets set MAILGUN_API_KEY=key-xxxxx supabase secrets set MAILGUN_DOMAIN=mg.example.com supabase secrets set MAILGUN_REGION=us # or eu (optional)
- Create
.env.localwith the same keys for local serving if needed.
supabase start
supabase functions serve send-mailgun-email --env-file .env.localsupabase functions deploy send-mailgun-email