Skip to content
null-shot avatar

Cloudflare Opennext

Next.js on Cloudflare Workers via OpenNext, covering App Router, Pages Router, ISR, SSG, and bindings.

CCM score
52 of 100
skills.sh installs
470
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers project creation, migration from Vercel or next-on-pages, caching with R2, KV, and D1, and local dev setup
  • Includes wrangler.jsonc, open-next.config.ts, next.config.ts, and .dev.vars configuration plus the opennextjs-cloudflare build, preview, and deploy commands
  • Enforces the Node.js runtime, so export const runtime = "edge" must be removed, and requires nodejs_compat with WORKER_SELF_REFERENCE
  • Designed for teams moving Next.js apps to Cloudflare Workers that need KV, R2, D1, or Durable Objects access through getCloudflareContext

Install

$ npx -y skills add null-shot/cloudflare-skills --skill cloudflare-opennext -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Cloudflare OpenNext

Deploy Next.js applications to Cloudflare Workers using the @opennextjs/cloudflare adapter with full support for App Router, Pages Router, ISR, SSG, and Cloudflare bindings.

When to Use

  • Creating new Next.js apps for Cloudflare Workers
  • Migrating existing Next.js apps to Cloudflare
  • Configuring ISR/SSG caching with R2, KV, or D1
  • Accessing Cloudflare bindings (KV, R2, D1, Durable Objects, AI)
  • Using databases and ORMs (Drizzle, Prisma) in Next.js
  • Troubleshooting deployment issues or bundle size problems

Getting Started

New App

npm create cloudflare@latest -- my-next-app --framework=next --platform=workers
cd my-next-app
npm run dev      # Local development with Next.js
npm run preview  # Preview in Workers runtime
npm run deploy   # Deploy to Cloudflare

Existing App Migration

# 1. Install dependencies
npm install @opennextjs/cloudflare@latest
npm install --save-dev wrangler@latest

# 2. Create wrangler.jsonc (see Configuration section)
# 3. Create open-next.config.ts
# 4. Update next.config.ts
# 5. Add scripts to package.json
# 6. Deploy
npm run deploy

Core Concepts

How OpenNext Works

Details

Repository
github.com/null-shot/cloudflare-skills
Categories
DevOps & Cloud, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the cloudflare-opennext skill do?

cloudflare-opennext deploys Next.js apps to Cloudflare Workers using the @opennextjs/cloudflare adapter. It supports the App Router, Pages Router, ISR and SSG, and it helps with caching in R2, KV or D1 and with accessing Cloudflare bindings through getCloudflareContext.

How do I install the cloudflare-opennext skill?

Run npx -y skills add null-shot/cloudflare-skills --skill cloudflare-opennext -y in a project to install it. Once installed, cloudflare-opennext guides the agent through creating, migrating and deploying Next.js projects to Workers.

Where does cloudflare-opennext sit in the DevOps and Cloud category?

cloudflare-opennext is listed in the DevOps and Cloud category on Claude Marketplaces. The other skills there that lead the category are azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage.

Does cloudflare-opennext work with the Edge runtime?

No, cloudflare-opennext uses the Next.js Node.js runtime, not the Edge runtime. Its SKILL.md tells the agent to remove export const runtime = "edge" from projects, since it is not supported.

Similar to Cloudflare Opennext

More DevOps & Cloud