Menu

1 / 2

vite-ssr-boost 8.7: run production SSR on node:http, and stop cutting off slow clients on shutdown

DEV Community: react·Melissa Ashford·7 days ago
#ak85ZOlU
#devtoreact#devto#dev#server#node
Long article (1169 words) — no AI summary yet.
Reading 0:00
15s threshold

vite-ssr-boost adds SSR and streaming to an existing Vite + React Router app in Data mode, without moving to Framework mode. Before 8.7 the managed server was Express. Version 8.7 adds a second option for dev and start : a server built on node:http , with a graceful drain and opt-in health probes. Express is still the default.

Install 8.7.1 rather than 8.7.0: the patch fixes the drain bug described below. The package requires Node 22.12 or later.

Switching the managed server

One option in the Vite config:

// vite.config.ts SsrBoost ( { managedServer : 'node' } ) ;

Enter fullscreen mode

Exit fullscreen mode

Or per command: ssr-boost dev --server node and ssr-boost start --server node .

ssr-boost build writes the choice to build/server/ssr-boost.json , and start reads it back; --server node|express overrides the recorded value. When start runs the node server, the process loads neither Vite nor Express.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.