
Migrate To Vinext
Migrates Next.js projects to vinext, a Vite-based reimplementation, with compatibility scanning, config generation, and ESM conversion.
- skills.sh installs
- 9.7K
- GitHub stars
- 9.4K
- last updated
- Aug 21, 2026
What it does
- Covers the migration flow: compatibility scan with
vinext check, package swap, Vite config generation, ESM conversion, and deployment setup - Includes an automated
vinext initpath with--platform, Cloudflare cache and image flags, and--no-installfor manual dependency control - Enforces a stop when
nextis absent frompackage.json, and requires explicit cache and image choices in agent sessions - Designed for Next.js projects moving to Cloudflare Workers natively or to other platforms through Nitro
Install
$ npx -y skills add cloudflare/vinext --skill migrate-to-vinext -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Migrate Next.js to vinext
vinext reimplements the Next.js API surface on Vite. Existing app/, pages/, and next.config.js work as-is — migration is a package swap, config generation, and ESM conversion. No changes to application code required.
FIRST: Verify Next.js Project
Confirm next is in dependencies or devDependencies in package.json. If not found, STOP — this skill does not apply.
Detect the package manager from the lockfile:
| Lockfile | Manager | Install | Uninstall |
|---|---|---|---|
pnpm-lock.yaml | pnpm | pnpm add | pnpm remove |
yarn.lock | yarn | yarn add | yarn remove |
bun.lockb / bun.lock | bun | bun add | bun remove |
package-lock.json or none | npm | npm install | npm uninstall |
Detect the router: if an app/ directory exists at root or under src/, it's App Router. If only pages/ exists, it's Pages Router. Both can coexist.
Quick Reference
Details
- Repository
- github.com/cloudflare/vinext
- Categories
- Frontend Development, Marketing & SEO, Cloud & Infrastructure
Similar to Migrate To Vinext
More Frontend Development
nextjs-on-cloudflarecloudflare/skills60.4K installsBuild and deploy Next.js apps on Cloudflare Workers with vinext, not OpenNext, for new projects.
vinext-vite-nextjsaradotso/trending-skills1.3K installsVite-based Next.js API reimplementation that deploys anywhere, including Cloudflare Workers, without the Next.js compiler.
next-upgradevercel-labs/next-skills22.3K installsAutomated Next.js version upgrades that apply official codemods and follow the migration guide.
cloudflare-opennextnull-shot/cloudflare-skills468 installsNext.js on Cloudflare Workers via OpenNext, covering App Router, Pages Router, ISR, SSG, and bindings.
cloudflare-workers-migrationsecondsky/claude-skills313 installsStep-by-step guide that ports Lambda, Vercel, and Express apps to Cloudflare Workers with compatibility fixes.
viteantfu/skills42.3K installsComprehensive Vite reference covering configuration, plugin API, SSR, library builds, and the Vite 8 Rolldown migration.