cloudflare-nextjs
Cloudflare Next.js Deployment Skill
Deploy Next.js applications to Cloudflare Workers using the OpenNext Cloudflare adapter for production-ready serverless Next.js hosting.
When to Load References
Load additional reference files based on your specific task:
-
references/error-catalog-extended.md- Load when encountering ANY error during setup, build, or deployment. Contains complete catalog of 11+ documented issues with root causes, solutions, and official sources. -
references/service-integration-patterns.md- Load when integrating Cloudflare services (D1, R2, KV, Workers AI) with Next.js. Contains complete patterns for database queries, file uploads, caching, and AI inference. -
references/troubleshooting.md- Load for general troubleshooting and debugging guidance beyond the error catalog. -
references/feature-support.md- Load when checking if a specific Next.js feature is supported on Cloudflare Workers (e.g., "Can I use Server Actions?", "Does ISR work?"). -
references/database-client-example.ts- Load when integrating external database clients (Drizzle, Prisma, PostgreSQL, MySQL) with proper request-scoping patterns required by Workers. -
references/open-next.config.ts- Load when configuring caching behavior, image optimization, or custom OpenNext settings.