TanStack Router vs Chicane
Hi everyone, wondering if I can get some advice…
I’m building a single page application but want a few pages to be pre-rendered (SSG not SSR). I’ve been using TanStack Router so far, but I can’t help feeling like it’s too heavyweight / too much magic (e.g route tree gen).
Reading the docs I saw that TanStack Router was inspired by Chicane, and having looked at Chicane it appears to be just what I need if combined with SWR or TanStack Query. Can anyone point me in the right direction for getting SSG working with Chicane?
2 Replies
ratty-blush•4mo ago
I guess if you really just need SSG the goat at the moment is AstroJS. Otherwise you can look into Tanstack Start and the SPA mode combined with prerender which is basically then SSG
foreign-sapphireOP•4mo ago
Thanks, I’ll take a look at Astro