Nextvi (next-vite-dev v1.1.0) lets you run a lightweight Vite dev server alongside Next.js, consuming src/app/ pages without modifying any business code. It auto-generates react-router routes from the Next.js app directory, handles async server components by converting them to sync, and provides shims for next/link, next/image, and next/navigation. Target audience: Next.js developers suffering from high memory usage or slow HMR in large projects. Release cadence: early-stage, active development. Differentiator: zero-config, zero-code-change Vite integration with automatic route generation and wrapper overrides for server-fetch pages.
npm install next-vite-devNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize Nextvi by adding the Vite plugin, creating index.html, Vite entry, and ViteApp component to auto-generate routes from your existing Next.js app directory.
Upgrade to react-router-dom v6+ and use createBrowserRouter or BrowserRouter v6.
Place entry.tsx in vite/ directory at project root.
Remove 'include' and pass custom directories to 'customEntries' array if needed.
Create a wrapper file under vite/wrappers/ mirroring the route path, using client-side fetch.
Move pages into src/app/ directory or manually add vite routes.
Ensure nextvi() is added to plugins in vite.config.ts and that you are running 'pnpm vite' (not 'pnpm dev').
Add 'next' as a devDependency or ensure it is hoisted: pnpm add -D next
Create the file vite/entry.tsx at the project root with correct content.
Create a wrapper in vite/wrappers/ mirroring the route path that uses useParams() from next/navigation.