Control how your pages are rendered and use any view framework (React, Vue, Svelte, ...) and any tool you want (Vuex/Redux/PullState, RPC or GraphQL, React/Vue Query, PWA, Service Workers, ...).
Integrating tools is simple and natural.
Filesystem Routing, Data fetching, Pre-rendering (SSG), HMR, i18n.
Client Routing (faster page transitions) or Server Routing (simpler app architecture).
Pages can be rendered with SSR, as SPA, or to HTML-only.
vite-plugin-ssr you integrate tools manually instead of using a plugin system.
While it means more work, it gives you a simple & sturdy foundation to build upon.
The source code of
vite-plugin-ssr has no known bug.
Every release is assailed against a heavy suite of automated tests.
Used in production by many companies.
🌍 Deploy anywhere
Works with any server environement (Cloudflare Workers, Vercel, EC2 instance, AWS lambda, Firebase, Express.js, Fastify, Hapi, ...).
Pre-render your app and deploy it to any static host (Netlify, GitHub Pages, Cloudflare Pages, ...).
Browser-side code splitting: each page loads only the code it needs. Lighthouse score of 100%.
Fast Node.js cold start: pages are lazy-loaded so that adding pages doesn't increase the cold start of your serverless functions.
Dev speed that scales to hundreds of kLOCs — HMR stays fast.
Architectural flexibility that scales from small hobby projects to large-scale enterprise projects.
Crafted with attention to details and care for simplicity.
Upsteam contributions to Vite and others.
GitHub and Discord conversations are welcome.