|
1 | 1 | --- |
2 | | -title: The Cloudflare Vite plugin is now generally available |
| 2 | +title: The Cloudflare Vite plugin is now Generally Available |
3 | 3 | description: Cloudflare Vite Plugin 1.0 is out now — with official support for Vite 6, React Router v7, and the full Developer Platform. Now you can run Vite’s dev server locally, while executing your code directly in the Workers runtime! |
4 | 4 | products: |
5 | 5 | - workers |
6 | 6 | date: 2025-04-08T18:00:00Z |
7 | 7 | --- |
8 | 8 |
|
9 | | -We're excited to announce that the official [Cloudflare Vite plugin](/workers/vite-plugin/) has [reached v1.0](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin) and is now **generally available**. The Vite plugin allows you to run [Vite's](https://vite.dev/) development server in the Workers runtime (`workerd`), meaning you get all the benefits of Vite (including [Hot Module Replacement](https://vite.dev/guide/features.html#hot-module-replacement)) while still being able to use features that are exclusive to Workers ([like Durable Objects](/durable-objects/)). |
| 9 | +The [Cloudflare Vite plugin](/workers/vite-plugin/) has [reached v1.0](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin) and is now Generally Available ("GA"). |
10 | 10 |
|
11 | | -This effort was done [🧡 in partnership with the Vite team 🧡](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin) and made by possible with their new [environment API](https://vite.dev/guide/api-environment). |
| 11 | +When you use `@cloudflare/vite-plugin`, you can use Vite's local development server and build tooling, while ensuring that while developing, your code runs in [`workerd`](https://github.com/cloudflare/workerd), the open-source Workers runtime. |
| 12 | + |
| 13 | +This lets you get the best of both worlds for a full-stack app — you can use [Hot Module Replacement](https://vite.dev/guide/features.html#hot-module-replacement) from Vite right alongside [Durable Objects](/durable-objects/) and other runtime APIs and bindings that are unique to Cloudflare Workers. |
| 14 | + |
| 15 | +`@cloudflare/vite-plugin` is made possible by the new [environment API](https://vite.dev/guide/api-environment) in Vite, and was built [in partnership with the Vite team](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin). |
12 | 16 |
|
13 | 17 | #### Framework support |
14 | 18 |
|
15 | | -The Vite plugin is supported in front-end [frameworks](/workers/frameworks/) (for building single page applications and static sites) as well as [React Router v7](/workers/frameworks/framework-guides/react-router/) (for building server-side rendered applications). For an example, check out [this full-stack application](https://github.com/cloudflare/templates/tree/main/react-router-postgres-ssr-template) built using React Router v7 and the Vite plugin. |
| 19 | +You can build any type of application with `@cloudflare/vite-plugin`, using any rendering mode, from single page applications (SPA) and static sites to server-side rendered (SSR) pages and API routes. |
| 20 | + |
| 21 | +[React Router v7 (Remix)](/workers/frameworks/framework-guides/react-router/) is the first full-stack framework to provide full support for Cloudflare Vite plugin, allowing you to use all parts of Cloudflare's developer platform, without additional build steps. |
16 | 22 |
|
17 | | -You can also build complete full-stack apps on Workers **without a framework**: ["just use Vite"](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin) and React together, and build a back-end API in the same Worker. Follow our [React SPA with an API tutorial](/workers/vite-plugin/tutorial/) to learn how. |
| 23 | +You can also build complete full-stack apps on Workers **without a framework** — ["just use Vite"](https://blog.cloudflare.com/introducing-the-cloudflare-vite-plugin) and React together, and build a back-end API in the same Worker. Follow our [React SPA with an API tutorial](/workers/vite-plugin/tutorial/) to learn how. |
18 | 24 |
|
19 | 25 | #### Configuration |
20 | 26 |
|
|
0 commit comments