5:17Cloudflare just slop forked Next.js…
The Next.js Ecosystem and Deployment Challenges Next.js is the most popular React app framework. Historically, its weakness has been limited deployment targets, unlike bespoke runtimes on platforms like Vercel. Deploying Next.js apps to other platforms like Cloudflare or Netlify is more complex. The Open Next project repackages Next.js build output for broader deployment but is fragile and prone to errors when Next.js output changes. Cloudflare's V-Next: A Re-implementation of Next.js Cloudflare developed V-Next, a re-implementation of the Next.js API built on Vite. The goal is to free Next.js apps for deployment anywhere. This isn't the first attempt; Cloudflare previously tried and failed. AI significantly accelerated development: basic SSR, middleware, server actions, and streaming worked in one day. By day three, full client hydration on Cloudflare Workers was achieved. API coverage reached 94% of the Next.js API within a week, costing approximately $1,100 in AI tokens. V-Next leverages Vite's architecture, including Rollup (Rust-based bundler) for performance. Vercel's Reaction and Potential Vulnerabilities Vercel's CTO called V-Next a "slop fork." Vercel also released a migration guide and highlighted critical vulnerabilities in V-Next. These vulnerabilities suggest it's a close Next.js clone, but Vercel claims Cloudflare lacks significant users. Testing V-Next and Migration Experience The author tested V-Next with their newsletter app, bytes.dev. For basic apps, installing V-Next and changing the build command might suffice. This app required refactoring, simplified by Cloudflare's agent skill. Key compatibility adjustments include adding "type": "module" to package.json and changing JS file extensions to .jsx for files with JSX. The initial migration attempt by the agent was incomplete, requiring further manual intervention. The app was successfully migrated to run entirely on V-Next. Performance and Future Outlook The author concludes that switching to V-Next might not be worth it yet ("you're the one who bleeds"). Vite is highlighted as a significant factor in V-Next's performance. Cloudflare's benchmarks show V-Next build times up to 4.4x faster and 57% smaller client bundles than Next.js, attributed to Vite and Rollup. The author independently achieved 5x faster build times. Despite performance gains, the author will not ship to production yet but will monitor the project. Understanding underlying code and computer science fundamentals is crucial, even with AI code generation.









