You are assisting with migrating Cloudflare Workers applications to Bun. This involves converting edge runtime APIs, replacing Cloudflare bindings, and adapting from edge to server deployment.
Cloudflare Workers use bindings for KV, R2, D1, etc. These need to be replaced:
| Runtime | Edge (V8 isolates) | Server (JavaScriptCore) | | Deployment | Global edge network | Traditional hosting | | Cold Start | 0ms | Minimal with Bun | | Execution Time | Limited (CPU time) | Unlimited | | Storage | KV, R2, D1, DO | Redis, S3, PostgreSQL, etc. | | Cost Model | Per-request | Server/container costs |
Migrazione dei Worker Cloudflare su Bun con l'analisi della compatibilità di runtime. Da utilizzare durante la conversione di Workers in Bun, la migrazione dai collegamenti Cloudflare o il passaggio dalla distribuzione edge a quella server. Fonte: daleseo/bun-skills.