feat(cloudflare): support durable instance selection#4110
Conversation
|
@onmax is attempting to deploy a commit to the Nitro Team on Vercel. A member of the Team first needs to authorize it. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
📝 WalkthroughWalkthroughThis PR introduces Cloudflare Durable Objects support to Nitro. It adds type definitions, build-time virtual module generation, runtime helpers for durable stub resolution with optional custom resolvers, preset configuration, wrangler config management, and comprehensive tests for static and resolver-based durable instance naming. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can suggest fixes for GitHub Check annotations.Configure the |
Summary
cloudflare.durable.instanceNameandcloudflare.durable.resolverwrangler.jsonforcloudflare_durableVerification
pnpm build --stubpnpm lint:fixpnpm test:typespnpm vitest run test/unit/cloudflare-durable.test.ts test/presets/cloudflare-durable.test.tspnpm vitest run test/presets/cloudflare-module.test.ts test/presets/cloudflare-pages.test.ts