Thanks to visit codestin.com
Credit goes to github.com

Skip to content

StarkMP/vite-ssr-template

Repository files navigation

Vite SSR Template

Custom optimized SSR template built on React 19, Vite, and Fastify.

Stack

  • React 19 + TypeScript
  • Vite
  • Fastify
  • tsup

Features

  • Streaming SSR via renderToPipeableStream
  • Critical CSS inlining with Beasties
  • LRU HTML cache with request deduplication (thundering herd protection)
  • Brotli compression for SSR responses and static assets
  • ETag support for HTML
  • Immutable cache headers for fingerprinted assets
  • Graceful shutdown on SIGTERM / SIGINT

Development

npm run dev

Production

npm run build
npm run preview

Contributor

StarkMP

About

Custom optimized SSR template built on React 19, Vite, and Fastify.

Topics

Resources

Stars

Watchers

Forks

Contributors