1

vite-plugin-ssr

 1 year ago
source link: https://vite-plugin-ssr.com/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

🔧 Control

Use any UI framework (React, Vue, Svelte, Solid, ...) and any tool you want (any frontend library, web technology, deploy environment, Vite plugin, ...).

With vite-plugin-ssr, you integrate tools manually and keep architectural control.

📦 Zero-config

vite-plugin-ssr gives you control only where it matters.

Everything else just works without the need to configure anything.

💫 Simple

With vite-plugin-ssr you integrate tools manually; while it means more work, it gives you a fundamentally simpler & more stable foundation to build upon.

The clean cut between vite-plugin-ssr and your UI framework (React/Vue/...) makes reasoning about your app easier.

mechanical-arm.041bd0e5.svg Full-fledged

Filesystem Routing, Data fetching, Pre-rendering, Layouts, HMR, i18n, Link Prefetching, HTML Streaming.

Client Routing (fast page navigation) or Server Routing (simple architecture).

All render modes: SSR, SPA, MPA, SSG, HTML-only. Each page can use a different mode.

FILESYSTEM                        URL
pages/index.page.js               /
pages/about.page.js               /about
pages/faq/index.page.js           /faq
pages/movie/@id/index.page.js     /movie/1, /movie/2, /movie/3, ...

🌍 Deploy anywhere

Deploy anywhere (Vercel Serverless/Edge/ISR, Cloudflare Workers, AWS EC2/Lambda, Firebase, Google Cloud, ...).

Pre-render your app and deploy it to any static host (Netlify, GitHub Pages, Cloudflare Pages, ...).

Fits Cloudflare Workers's small worker size requirement like a glove.

 vite build 
 
 42 modules transformed.
 
 3 HTML documents pre-rendered.


💎 Rock-solid

The source code of vite-plugin-ssr has no known bug, every release is assailed against a heavy suite of automated tests, and it's used in production by many comp­anies.

🚀 Scalable

DX that scales to hundreds of kLOCs: HMR & dev start that stays fast, powered by Vite vite.17e50649.svg.

Architectural flexibility that scales from small hobby projects to large-scale enterprise projects.

⚡ Fast

State-of-the-art performance with Code Splitting, Client Routing, Link Prefetching, and Fast Cold Starts.

Lighthouse Score: 100%.

💖 Fun

vite-plugin-ssr is simple, clear, and robust: no magic, no unexpected behavior, no conflation, no bugs (known in vite-plugin-ssr's source code).

With vite-plugin-ssr, you are under control; it's addictively fun.

vike.1d5ea9e7.png Build Your Own Framework

Use vite-plugin-ssr to Build Your Own Framework. Hundreds of lines of code are enough to build your own Next.js / Nuxt.

Build internal company frameworks to scale your teams, or enhance your product with a bespoke framework to delight your users, or just keep architectural control.

❤ Craftsmanship

Crafted with attention to details and care for simplicity.

Upsteam contributions to Vite and others.

GitHub and Discord conversations are welcome.

⚗ Cutting Edge

We regularly participate in RFCs and we are usually among the first to support the latest techniques.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK