Edge Computing with Cloudflare Workers
“Just use Vite”… with the Workers runtime

“Just use Vite”… with the Workers runtime

4/8/2025 · James Opstad, Dario Piotrowicz, Peter Bacon Darwin, Igor Minar

What this post added

Introduces the 1.0 release of the Cloudflare Vite plugin, enabling the Vite dev server to run Worker code within the native Cloudflare Workers runtime (workerd) using Vite's experimental Environment API. This allows for closer parity between development and production environments for Single-Page Applications (SPAs) and full-stack applications. It also announces official support for React Router v7 within this integration. The post details how to create new apps and update existing Vite SPAs with the plugin, and demonstrates the development workflow for client and server code iteration. It also highlights the ability to build, preview, and deploy Vite applications directly using Wrangler.

Read the original post ↗