How to Call Resend Email API from Static HTML & Astro Sites
Serverless Resend Proxy for JAMstack, Astro, and Static Sites
Static sites have no server to hold RESEND_API_KEY. RealComposer provides a zero-maintenance edge proxy that receives form submissions from your static HTML site and sends emails via Resend with sub-50ms latency.
Static Sites Lack Server Secret Storage
Putting a Resend API key in static HTML contact forms lets anyone extract it and send emails from your domain.
- Email spoofing from your verified domain
- Resend daily quota exhaustion
- DKIM/SPF domain reputation damage
How RealComposer Solves This at the Edge
Vault Resend Key
Store RESEND_API_KEY in RealComposer Secret Vault.
Post from Static HTML
Wire standard HTML form to RealComposer endpoint.
{
"id": "49a39281-a8b2",
"from": "contact@domain.com",
"to": [
"team@domain.com"
]
}
{
"id": "49a39281-a8b2"
}
Recipe Specs
- HTTP method
- POST
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Public
- Mapped output fields
- 1
- Payload
- 75 B to 22 B (-71%)
curl -X POST "https://realcomposer.com/v1/acme/contact-form"
Developer Questions & Troubleshooting
Do I need Cloudflare Workers or AWS Lambda?
No, RealComposer operates as the complete managed edge layer.
Sources & Definitions Used in This Answer
Deploy this Static HTML / Astro + Resend Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.