HeadsUpAI

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

· Updated

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

Share this update