Cloudflare's AI-Built Next.js Alternative

Cloudflare unveiled "vinext," an AI-assisted Next.js reimplementation, boasting 4.4x faster build times but lacking static pre-rendering.

Vinext, built as a Vite plugin, isn't a fork or wrapper but a reimplementation of the Next.js API, aiming to be a drop-in replacement. It supports routing, server-side rendering, React Server Components, server actions, caching, and middleware. A key difference is Vinext uses Vite instead of Next.js's Turbopack, potentially benefiting from Vite's faster ecosystem and Rolldown. Cloudflare says that about 95% of Vinext is platform-agnostic Vite code. Currently, Vinext doesn't support static pre-rendering at build time like Next.js's `generateStaticParams()`. Instead, it offers Traffic-aware Pre-Rendering (TPR), an experimental feature that pre-renders only high-traffic pages based on Cloudflare analytics. While promising, Cloudflare advises caution for production use, noting it's not yet battle-tested at scale. However, the National Design Studio is using Vinext in production on a beta site for CIO.gov.

Get your own daily briefing

Scout delivers personalized news, insights, and conversations tailored to your role and industry.

Download on the App Store

Shared from Scout - Be the smartest in the room.