Cloudflare Rebuilds Next.js on Vite With AI in One Week

CloudflareCloudflare

· Updated

Cloudflare rebuilt the Next.js API surface on Vite in one week using AI, producing vinext - a drop-in replacement that deploys to Workers with a single command. Early benchmarks show builds up to 4x faster and client bundles 57% smaller.

Cloudflare released vinext, an alternative implementation of the Next.js API surface built entirely on Vite as a plugin. Replace next with vinext in your scripts and existing app/, pages/, and next.config.js work as-is - routing, server rendering, React Server Components, server actions, caching, and middleware all reimplemented from scratch rather than adapted from Next.js build output.

This sidesteps the core deployment problem with Next.js outside Vercel. Projects like OpenNext reverse-engineer Turbopack output for other platforms, a fragile approach that breaks between versions. Vinext builds on Vite's architecture instead, and its output runs natively on any platform — Cloudflare already has a proof-of-concept running on Vercel, signaling this is designed to be platform-neutral, not another lock-in.

Vinext is experimental but backed by over 1,700 Vitest tests and 380 Playwright E2E tests. Install with npm install vinext and run vinext deploy to push to Cloudflare Workers.

Cloudflare
Cloudflare
@Cloudflare
X

We rebuilt Next.js in a week. No, really. The team ported the framework to run natively on Workers to prove what’s possible with edge-first architecture. Dive into the technical hurdles we solved to eliminate Node.js dependencies. https://t.co/GqYBiZ5Qum

538retweets
View on X

Every HeadsUpAI update is written based on its original source and reviewed before it's published. Read our editorial standards →

Share this update