hyderhusainarastu

Nextjs Cloudflare Workers Landing Site Setup — DevOps skill for Claude Code

DevOps community

Agent skill and worked example for running a Next.js App Router site on Cloudflare Workers using vinext, wrangler and an optional Drizzle + D1 database.

How to install Nextjs Cloudflare Workers Landing Site Setup

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

What Nextjs Cloudflare Workers Landing Site Setup does

Agent skill and worked example for running a Next.js App Router site on Cloudflare Workers using vinext, wrangler and an optional Drizzle + D1 database. Covers config files, scripts, pnpm native deps and a built-HTML smoke test.

Alternatives in DevOps

  • Claude Code Router — Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the m 30.1k ★
  • Vinext — Vite plugin that reimplements the Next.js API surface — deploy anywhere 8.7k ★
  • Helm Conductor — Use the @helm-conductor agent to orchestrate the engineering cycle — sequence features, decide what to work on 523 ★

README

Next.js on Cloudflare Workers: landing site setup

An Agent Skill that scaffolds a Next.js 16 App Router site onto Cloudflare Workers from scratch. It wires together three pieces that don't talk to each other out of the box:

  • vinext -- a Vite plugin that reimplements the Next.js API surface on Vite, so app/-router Next.js code (Server Components, streaming SSR, Server Actions) can run somewhere other than the Next.js compiler toolchain.
  • wrangler / @cloudflare/vite-plugin -- Cloudflare's local dev simulator and deploy tooling for Workers, including bindings (D1, R2, KV, …) and static asset serving.
  • Drizzle ORM + Cloudflare D1 -- an opt-in, off-by-default SQLite-dialect database layer for when the site needs to persist something (a waitlist signup, a counter, a contact form).

What it does

Rather than a script, this skill is a set of instructions: given a blank or existing Next.js App Router project, it walks an agent (or a developer) through every config file needed to get that project running on Cloudflare Workers -- `vite.config.ts`, a minimal `worker/index.ts` entry point, the `package.json` script wiring, the pnpm native-dependency allowlist, and, when needed, the Drizzle/D1 database layer -- explaining *why* each field exists, not just what to paste. It also includes a lightweight "render the built worker and assert on the HTML" smoke test pattern to catch broken deploys before they ship.

It intentionally has no opinion on your page content, styling, or copy -- it is deployment-target plumbing, applicable to any Next.js App Router project.

Works with

Surface How Status
Claude Code native skill (~/.claude/skills/ or .claude/skills/) not tested
Codex native skill via .agents/skills not tested
Gemini CLI native skill via .agents/skills, or pointer in GEMINI.md not tested
Cursor native skill via .agents/skills, or `AGE