The Cloudflare Vite plugin now integrates seamlessly @vitejs/plugin-rsc, the official Vite plugin for React Server Components.
A childEnvironments option has been added to the plugin config to enable using multiple environments within a single Worker.
The parent environment can then import modules from a child environment in order to access a separate module graph.
For a typical RSC use case, the plugin might be configured as in the following example:
export default defineConfig({ plugins: [ cloudflare({ viteEnvironment: { name: "rsc", childEnvironments: ["ssr"], }, }), ],});@vitejs/plugin-rsc provides the lower level functionality that frameworks, such as React Router, build upon.
The GitHub repository includes a basic Cloudflare example.
Source: Cloudflare
Latest Posts
- AWS HealthOmics now streams workflow engine logs to Amazon CloudWatch in real time

- Amazon EC2 Future-dated Capacity Reservations Now Supports Cancellation

- Amazon Quick expands integrations with new connectors for Adobe, Figma, WhatsApp, and more

- Amazon Aurora and RDS for MySQL expand Extended Support for MySQL 5.7 through June 2029






