Is there a way to pre-render certain pages as static without Start?
It's quite weird to say this, but is there a way to pre-render certain pages?
I'm working on a new project that (may) require a certain (landing) page to be static. Overall, almost all of the apps do not need to be SSR as it is mainly based on CSR and do not require it, but one or two pages are required to be static.
There's another framework that supports what I want exactly: https://reactrouter.com/how-to/pre-rendering#pre-rendering-with-a-spa-fallback
I searched docs quite a bit and seems it is not supported by router directly.
4 Replies
stormy-goldOP•4mo ago
bump and new question: If this is not possible currently, Will be possible after de-vinxi of start is completed? based on this quote:
- And finally the bedrock to to proper SPA/SSG/Hybrid-SSR support across the boardfrom Tanner Linsley's Post on LinkedIn about
We're right in the middle of "devinxi"
. This (may) means what i wanted? (I want to deploy static, html, to s3, but pre-rendered certain route.)
I'm still waiting for response.extended-salmon•4mo ago
sounds like this will be something the upcoming SPA mode will enable
extended-salmon•4mo ago
GitHub
[RFC] SPA Mode Enhancements · TanStack router · Discussion #3394
TanStack Start is a unique opportunity for SPAs to have server-side features, but may come with some decisions to make. What does SPA mode mean? From my perspective, SPA mode is a general term for ...
stormy-goldOP•4mo ago
So it is not possible on current version. Sadly. I understand. Thank you.