aradotso avatar

Vinext Vite Nextjs

If you've got a Next.js app and want to deploy it to Cloudflare Workers or escape Vercel lock-in, this bridges the gap by reimplanting Next.js APIs on top of Vite. It handles both Pages and App Router with 94% API coverage, so getServerSideProps, Server Components, and Route Handlers just work. The migration is non-destructive and there's a one-command init that runs compatibility checks and sets everything up alongside your existing Next.js setup. Worth considering if you're already hitting Next.js deployment constraints or just want faster dev server HMR from Vite without rewriting your routing layer.

skills.sh installs
1.3K
GitHub stars
61
last updated
Jul 14, 2026

Install

$ npx -y skills add aradotso/trending-skills --skill vinext-vite-nextjs --agent claude-code

Installs into .claude/skills of the current project.

Files

vinext — Next.js API on Vite, Deploy Anywhere

Skill by ara.so — Daily 2026 Skills collection.

vinext is a Vite plugin that reimplements the Next.js public API surface (routing, SSR, RSC, next/* imports, CLI) so existing Next.js apps run on Vite instead of the Next.js compiler. It targets ~94% API coverage, supports both Pages Router and App Router, and deploys natively to Cloudflare Workers with optional Nitro support for AWS, Netlify, Vercel, and more.

Installation

New project (migrate from Next.js)

# Automated one-command migration
npx vinext init

This will:

  1. Run compatibility check (vinext check)
  2. Install vite, @vitejs/plugin-react as devDependencies
  3. Install @vitejs/plugin-rsc, react-server-dom-webpack for App Router
  4. Add "type": "module" to package.json
  5. Rename CJS config files (e.g. postcss.config.js → postcss.config.cjs)
  6. Add dev:vinext and build:vinext scripts
  7. Generate a minimal vite.config.ts

Migration is non-destructive — Next.js still works alongside vinext.

Manual installation

npm install -D vinext vite @vitejs/plugin-react

Sponsors

Details

Repository
github.com/aradotso/trending-skills
Category
Frontend Development
First seen
Apr 16, 2026

More from aradotso/trending-skills

All 251
1flutter avatarflutter-layoutflutter/skillsflutter layout1.3Kskills.sh installs
2theqtcompanyrnd avatarqt-ui-designtheqtcompanyrnd/agent-skills>-1.2Kskills.sh installs
3vtex avatarvtex-io-admin-reactvtex/skillsApply when building VTEX IO admin-facing React interfaces under the admin builder. Covers VTEX Styleguide and Shoreline usage, admin page composition, data-heav1.2Kskills.sh installs
4digitalsamba avatarfrontend-designdigitalsamba/claude-code-video-toolkitCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applicat1.1Kskills.sh installs
5chrisbanes avatarcompose-modifier-and-layout-stylechrisbanes/skillsUse when writing or reviewing Jetpack Compose layout APIs, modifier parameters, modifier chain construction, hardcoded root layout decisions, or layout wrappers1Kskills.sh installs
6alinaqi avatarui-mobilealinaqi/claude-bootstrapui mobile1Kskills.sh installs