Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext. Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers. For setup, migration, or deployment, install vinext's upstream skills with `npx skills add cloudflare/vinext` if missing, then read and follow the applicable skill and docs.
Written by Cloudflare and published in cloudflare/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
Use vinext rather than OpenNext for new Next.js projects on Cloudflare Workers. This is the default in the Cloudflare Next.js guide. Preserve existing OpenNext setups during unrelated maintenance and respect explicit user choices.
vinext reimplements the Next.js API surface on Vite:
next/* imports.Before setup, migration, or deployment, check whether the skills maintained in vinext are available. If missing, install them:
npx skills add cloudflare/vinext
Then read and follow the applicable upstream SKILL.md and its relevant references. Use the current vinext docs for workflows the skills do not cover:
create-vinext-app with the Cloudflare target. The upstream migration skill requires an existing Next.js project; do not apply it to an empty directory.migrate-to-vinext skill, including its compatibility check and relevant references. Select Cloudflare as the deployment target.If installation is unavailable, read the linked upstream SKILL.md and relevant references directly. Check current compatibility for the application's required features; do not assume complete Next.js parity.
If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.
Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /nextjs-on-cloudflare in Claude Code or $nextjs-on-cloudflare in Codex.
The description says when to use it:
Use when starting a Next.js project on Cloudflare, moving an existing app to Workers, choosing between vinext and OpenNext, or setting up vinext for Workers.
Copy the nextjs-on-cloudflare folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/cloudflare/skills.git /tmp/cloudflare-skills
mkdir -p .claude/skills
cp -r /tmp/cloudflare-skills/skills/nextjs-on-cloudflare .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if nextjs-on-cloudflare does not appear.
git clone --depth 1 https://github.com/cloudflare/skills.git /tmp/cloudflare-skills
mkdir -p .agents/skills
cp -r /tmp/cloudflare-skills/skills/nextjs-on-cloudflare .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for nextjs-on-cloudflare and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
nextjs-on-cloudflare ships 2 files, 5.6 KB in total. Select a file to load it from GitHub.