The Cloudflare Next.js skill equips Claude Code with deep architectural knowledge and troubleshooting patterns for running Next.js on Cloudflare Workers using the @opennextjs/cloudflare adapter. It streamlines project migrations, wrangler.jsonc configuration, and runtime environment setups while eliminating common pitfalls around edge vs. nodejs_compat runtimes, database connection pooling, and multi-tier caching (R2 incremental cache, D1 tag cache, and Durable Object queues). Whether configuring D1/KV bindings with getCloudflareContext, setting up skew protection, or troubleshooting worker size limits, this skill ensures smooth, production-ready serverless Next.js deployments.
주요 기능
01Resolves worker bundle size limits, connection scoping errors, and workerd runtime incompatibilities
02Implements type-safe Cloudflare binding integrations for D1, R2, KV, Hyperdrive, and Vectorize via getCloudflareContext
03Provides automated migration and setup workflows for both App Router and Pages Router architectures
04239 GitHub stars
05Architects multi-tier caching strategies using R2 incremental cache, D1 tag cache, and Durable Objects queues
06Configures OpenNext adapter builds with nodejs_compat and correct Wrangler compatibility flags
사용 사례
01Migrating an existing Next.js App Router application from Vercel or Node.js hosting to Cloudflare Workers
02Configuring incremental static regeneration (ISR) and on-demand cache revalidation backed by R2 and D1
03Debugging build failures, workerd runtime crashes, and connection-pooling issues with Prisma or Drizzle ORM