ISR / SSG layer on top of @vitejs/plugin-rsc — feedback welcome #22359
fwx5618177
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Small project sitting on top of
@vitejs/plugin-rsc: adds an ISR cache layer(LRU + Redis, tag-based invalidation), an SSG spider, and a
csr-shellfallback for when SSR throws. Vite 8 + React 19 + Express 5. Doesn't
reimplement the Flight protocol — that's still the official plugin's job.
Consumer-side it's three files (
vite.config.ts,package.json,src/app.tsx)with zero extra Vite config.
It's alpha — only one site is using it. Posting here because I'd like a
review from people who know Vite RSC internals before I take it further.
Specific things I'd like opinions on:
csr-shellfallback concept (is there prior art?).tsxbecause plugin-rsc needs to see'use client'directives — is there a recommended pattern?Repo:
Not pitching a Next.js replacement. Honestly looking for pushback.
All reactions