This is a code example which demonstrates building a React 18 (alpha) application with Vite and streaming a SSR response to both Node.js and Workers runtimes.
It is meant to be a Vite version of the official React 18 Streaming SSR example, only modified to support Vite and its way of detecting and bundling assets.
yarn
Run the Vite dev server (Node.js runtime):
yarn dev
Run the Miniflare dev server (Workers runtime):
yarn build && yarn workers