Skip to content

mailgun/edge-function-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mailgun Edge Examples

Small, provider-specific edge function examples for Mailgun. The project will host multiple platforms; Supabase Edge Functions are the first set.

Platforms

  • 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 Examples

  • supabase/functions/send-mailgun-email — POST to send a transactional email via Mailgun.

Supabase Setup

  1. Install the Supabase CLI and log in.
  2. 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)
  3. Create .env.local with the same keys for local serving if needed.

Supabase: Run Locally

supabase start
supabase functions serve send-mailgun-email --env-file .env.local

Supabase: Deploy

supabase functions deploy send-mailgun-email

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published