sahildave

Nextjs On Cloudflare — DevOps skill for Claude Code

DevOps community

Agent cookbook: deploy Next.js on Cloudflare Workers (OpenNext, Hyperdrive, Workers Cache, PPR, custom domains).

How to install Nextjs On Cloudflare

This entry records only its repository, not the path inside it, so there is no exact command to give. Open sahildave/nextjs-on-cloudflare and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Nextjs On Cloudflare does

Agent cookbook: deploy Next.js on Cloudflare Workers (OpenNext, Hyperdrive, Workers Cache, PPR, custom domains).

Alternatives in DevOps

  • Cloudflare Deploy — Deploy apps to Cloudflare using Workers, Pages, and platform services 14.6k ★
  • Vinext — Vite plugin that reimplements the Next.js API surface — deploy anywhere 8.7k ★
  • Workers MCP — Talk to a Cloudflare Worker from Claude Desktop 646 ★

README

Next.js on Cloudflare Workers

Next.js on Cloudflare Workers: a cookbook for agents

**26 recipes for running a Next.js 16 app on Cloudflare Workers** with OpenNext (`@opennextjs/cloudflare`), plus a guide for moving off Vercel.

Each recipe covers one feature, stands on its own, and gives an agent the code, the checks and the failures to expect.

What it covers

  • Setup: wrangler.jsonc, open-next.config.ts and a custom worker.ts; plan limits; deploys from GitHub Actions; secrets and build-time env.
  • Data: Postgres through Hyperdrive with pg or postgres.js, and R2 writes for the page cache.
  • Caching: Workers Cache in front of the app, tag invalidation and purge, and patches for Cache Components (PPR) and "use cache" hangs on Workers.
  • Domains: DNS cutover, the www redirect, email records, customers' own domains through Cloudflare for SaaS, and routing by host.
  • App features: images without sharp, Payload CMS, Supabase Auth, cron triggers, and outbound fetch.
  • Operations: logs, a separate preview Worker for branches, and an incident playbook.

Where the recipes come from

Three Next.js apps that moved to Workers and run there in production:

  • macapp.space: a directory of Mac apps. Payload CMS, Supabase Postgres and Auth, Stripe for sponsor slots.
  • shareling.app: the web companion to a Mac app. Supabase Auth, Postgres, Stripe.
  • gitback.us: GitHub-native feedback boards for many teams, each of which can serve its board on its own domain.

Ever