PART 08
SSR & SSG
The new SSR model built on the Environment API, hand-rolled SSR, Wasm SSR.
- 8.1SSR API in the Vite 8 EraThe new SSR model built on Environment API — the limitations of ssrLoadModule, ModuleRunner as its replacement, and best practices for Vite 8 SSR.
- 8.2Project 7: Hand-Rolled SSR from ssrLoadModule to ModuleRunnerBuild a Vite + Node.js SSR app from scratch, first with the compatible ssrLoadModule path and then with a clean loading abstraction for the Environment API era.
- 8.3Static Site Generation (SSG)Implement SSG (Static Site Generation) with Vite + Node.js — pre-render all pages to HTML files at build time, with no server runtime required.
- 8.4Wasm SSR (New in Vite 8)Running WebAssembly in an SSR environment — Vite 8 provides native Wasm SSR support, letting high-performance algorithms written in Rust/Go/C++ run directly inside Node.js SSR.