@mdxe/workers
Cloudflare Workers MDX execution
@mdxe/workers
Execute MDX at the edge with Cloudflare Workers.
Installation
Usage
Configuration
Features
KV Storage
D1 Database
Caching
R2 Storage
wrangler.toml
Limitations
- No file system access
- Limited bundle size (1MB)
- No native Node.js modules
- 50ms CPU time limit (can be extended)
Best Practices
- Pre-compile MDX - Compile at build time when possible
- Use caching - Cache rendered output aggressively
- Minimize components - Keep component library small
- Stream responses - Use streaming for large documents