3 ms·
I think there's a world where you would use the code structuring of RSCs to compile a static page that's broken down into small chunks of html, css, js. Basica
by Garlef 1y ago
I think there's a world where you would use the code structuring of RSCs to compile a static page that's broken down into small chunks of html, css, js.
Basically: If you replace the "$1" placeholders from the article with URIs you wouldn't need a server.
(In most cases you don't need fully dynamic SSR)
The big downside is that you'd need a good pipeline to also have fast builds/updates in case of content changes: Partial streaming of the compiled static site to S3.
(Let's say you have a newspaper with thousands of prerendered articles: You'd want to only recompile a single article in case one of your authors edits the content in the CMS. But this means the pipeline would need to smartly handle some form of content diff)
- danabramov 1y agoRSC is perfectly capable of being run at the build-time, which is the default. So that’s not too far from what you’re describing.