Menu

vite-ssr-boost 8.8.2: precompressed files and faster streaming Brotli for SSR on node:http
📰

vite-ssr-boost 8.8.2: precompressed files and faster streaming Brotli for SSR on node:http

DEV Community: vite·Melissa Ashford·4 days ago
#DiBkblzX
#devtovite#devto#dev#compression#node
Long article (1158 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 switching to Framework mode. Version 8.7 gave it a production server on plain node:http without Express. Version 8.8 (use 8.8.2) adds compression to that server, in two parts:

static assets are compressed at build time and served as files;

SSR documents are compressed while they stream, with Brotli or gzip.

Express stays the default managed server and nothing changes for it: it keeps its compression middleware and ignores precompressed files. Precompression is opt-in.…

Continue reading — create a free account

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