Get AI summaries of any video or article — Sign up free
Cloudflare just slop forked Next.js… thumbnail

Cloudflare just slop forked Next.js…

Fireship·
5 min read

Based on Fireship's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

V-Next targets “deploy anywhere” for Next.js-style apps by rebuilding the framework on V rather than repackaging next build output.

Briefing

Cloudflare’s V-Next is a Next.js re-implementation built on V (and leveraging V’s Rust-based bundler, rolldown), aiming to let Next.js apps run on Cloudflare Workers without the fragile “repackage Next output” approach used by Open Next. The project’s pitch is straightforward: instead of reverse-engineering the results of next build, rebuild the Next framework itself so routing, middleware, ISR, image optimization, SSR, server actions, and streaming behave natively on non–Vercel platforms.

The effort is framed as unusually fast and unusually complete. Cloudflare reportedly got basic SSR, middleware, server actions, and streaming working in a single day. By day three, it reached deployment on Cloudflare Workers with full client hydration. Over the rest of the week, it focused on edge cases, expanded the test suite, and pushed API coverage to 94% of the Next API—done with roughly $1,100 in AI tokens. The technical rationale is that V’s architecture (including rolldown) can improve build performance and reduce bundle size, which matters because portability often comes with performance tradeoffs.

That portability claim is also where the rivalry with Vercel comes in. Vercel’s CTO publicly criticized the work as a “slop fork,” while Cloudflare’s Germo and Matthew exchanged pointed messaging, including a migration guide and critical vulnerabilities found in the project. The transcript suggests those vulnerabilities make V-Next feel like a true Next clone, but the practical takeaway is that the ecosystem conflict is happening alongside real engineering progress.

To test whether it works outside theory, the walkthrough targets a newsletter app (“byes.dev”) that uses typical Next.js patterns: signup, an archive read from disk, and an endpoint that returns HTML for email templates. For simple apps, the migration might be as easy as swapping the next command for V-Next in package.json. For this app, the author reports needing refactoring, then uses an agent skill (via Cursor) to migrate the codebase.

The migration highlights concrete compatibility issues with V. The agent adds type module to package.json so JavaScript files are treated as ES modules, and it refactors JSX-bearing files to use the JSX extension required by V. Even then, the process initially leaves “half the app” broken, requiring additional follow-up until the app runs on V.

On whether it’s worth switching, the verdict is cautious: bleeding-edge software still shifts under developers’ feet, and the migration cost may not pay off yet. Still, performance numbers are a strong signal. Cloudflare’s Trust Me Bro benchmarks claim V-Ex production build times are up to 4.4× faster than Next and client bundle size is 57% smaller, attributed largely to vit and rolldown. The author’s own local test reportedly hits 5× faster builds on the newsletter site, though they caution not to treat personal results as authoritative.

Overall, V-Next’s significance isn’t just platform portability—it’s the combination of speed-to-coverage, a more native approach than output repackaging, and performance improvements that could make “deploy anywhere” a realistic expectation for Next-style apps if the remaining edge cases keep shrinking.

Cornell Notes

Cloudflare’s V-Next is a Next.js re-implementation built on V, designed to run Next-style apps on Cloudflare Workers without relying on Open Next-style repackaging of next build output. The project reportedly reached basic SSR, middleware, server actions, and streaming in one day, then achieved Workers deployment with full client hydration by day three, finishing the week with 94% API coverage. The work also leans on V’s architecture, including rolldown, to improve build speed and reduce bundle size. A practical migration test of a newsletter app required refactoring for V compatibility (notably ES module settings and JSX file handling), and the switch wasn’t considered worth it yet for production. Still, performance benchmarks and early results suggest meaningful gains if compatibility gaps close.

What problem does V-Next try to solve compared with Open Next?

Open Next works by taking the output of next build and repackaging it so it can run on a different platform. That approach depends on the shape of build output staying stable, so it’s fragile as Next’s output changes. V-Next instead rebuilds the Next framework on top of V, aiming to provide native behavior for routing, middleware, SSR, server actions, streaming, and related features on Cloudflare Workers—so fewer “reverse-engineering” steps are needed.

What milestones and coverage targets were reported during V-Next’s development?

The transcript reports rapid progress: basic SSR, middleware, server actions, and streaming in about one day; deployment to Cloudflare Workers with full client hydration by day three; then the remainder of the week went to edge cases, expanding the test suite, and raising Next API coverage to about 94%. The effort is described as costing roughly $1,100 in AI tokens.

How does V-Next’s V/rolldown foundation connect to performance claims?

Because V includes a bundling architecture with rolldown (a Rust-based bundler), the project can improve build performance and reduce client bundle size. Cloudflare’s cited Trust Me Bro benchmarks claim production build times with V-Ex are up to 4.4× faster than Next and client bundle size is 57% smaller, largely attributed to vit and rolldown. The walkthrough also mentions a personal test reaching about 5× faster builds on the newsletter site.

What concrete code changes were needed when migrating a real Next app to V-Next?

The migration required V compatibility adjustments. The agent added type module to package.json so JavaScript files are treated as ES modules. It also refactored files containing JSX to use the JSX extension, which V requires. Even after the agent reported completion, the app initially had major breakage and needed additional follow-up before it ran fully on V.

Why does the transcript treat the switch as “probably not yet” worth it?

Despite working eventually, the migration cost and instability are emphasized: bleeding-edge tooling still forces developers to “bleed,” and the app needed refactoring plus iterative fixes. The performance gains are interesting, but the author says build time isn’t the main production priority and would wait to see how the project matures over the next few months.

Review Questions

  1. What tradeoff does V-Next aim to eliminate by rebuilding the framework instead of repackaging next build output?
  2. Which V-specific compatibility changes (from the migration) are most likely to break a typical Next.js codebase?
  3. How do the reported performance and API-coverage numbers influence the decision to adopt V-Next for production?

Key Points

  1. 1

    V-Next targets “deploy anywhere” for Next.js-style apps by rebuilding the framework on V rather than repackaging next build output.

  2. 2

    Reported development milestones include basic SSR/middleware/server actions/streaming in one day and Workers deployment with full client hydration by day three.

  3. 3

    The project claims about 94% coverage of the Next API after a week of edge-case work and test expansion.

  4. 4

    V-Next’s performance story relies on V’s architecture and rolldown to cut build times and reduce client bundle size.

  5. 5

    A real migration (newsletter app) required V-specific refactors such as adding type module and adjusting JSX file handling.

  6. 6

    Adoption is framed as premature for production because migration friction and breakage still occur even when tooling is used.

Highlights

V-Next reached Workers deployment with full client hydration by day three, then pushed toward 94% Next API coverage within a week.
Instead of repackaging next build output (Open Next’s fragility), V-Next rebuilds the Next framework on V for more native platform behavior.
The migration required V compatibility fixes like type module and JSX extension refactors, and initial runs left major parts broken.
Cloudflare’s cited benchmarks claim up to 4.4× faster production builds and 57% smaller client bundles, attributed largely to vit/rolldown.

Topics