← Back
Cloudflare
Cloudflare launches vinext, a Next.js reimplementation on Vite with 4.4x faster builds and 57% smaller bundles
Cloudflare WorkersCloudflare · releasefeatureperformanceplatformopen-source · blog.cloudflare.com ↗

What Changed

Cloudflare has released vinext (pronounced "vee-next"), a complete reimplementation of the Next.js API surface built on top of Vite rather than Next.js's proprietary Turbopack toolchain. This is not a wrapper or adapter—it's a clean, ground-up implementation of Next.js features including routing, server-side rendering, React Server Components, server actions, caching, and middleware.

The motivation stems from a fundamental deployment problem: Next.js's bespoke build tooling creates friction when deploying to serverless platforms like Cloudflare Workers, Netlify, or AWS Lambda. Previous solutions like OpenNext require reverse-engineering Next.js's build output, making the integration fragile and difficult to maintain across version updates.

Performance Improvements

Early benchmarks show dramatic improvements:

  • Production build time: 4.4x faster with Vite 8/Rolldown compared to Next.js 16 (1.67s vs 7.38s)
  • Client bundle size: 56-57% smaller gzipped (72.9-74.0 KB vs 168.9 KB)

These measurements isolate bundler and compilation performance on a 33-route application. Cloudflare publishes full methodology and historical results publicly, acknowledging these are directional rather than definitive across all production workloads.

Developer Experience

Migration is straightforward—replace next with vinext in npm scripts and existing app/, pages/, and next.config.js files work unchanged:

npm install vinext
vinext dev          # Development with HMR
vinext build        # Production build
vinext deploy       # Deploy to Cloudflare Workers with one command

Cloudflare Workers Integration

vinext is purpose-built for Cloudflare Workers deployment. Key features include:

  • Full App Router and Pages Router support with client-side hydration and React state
  • KV Cache Handler for incremental static regeneration out of the box
  • Pluggable caching layer to support R2, Cache API, or custom backends
  • Platform-specific APIs (Durable Objects, KV, AI bindings) work natively in dev and production without workarounds
  • Both dev and production phases run in Cloudflare's workerd runtime

The project cost approximately $1,100 in API tokens to develop, demonstrating the shifting economics of software development with AI assistance.

What Developers Need to Know

This is production-ready with active users already deploying to production. Live examples are available including an App Router Playground and Hacker News clone. The framework is open-source and available on GitHub. Developers targeting Cloudflare Workers have a significantly faster alternative to Next.js with better build performance, smaller bundles, and native platform integration.