TanStackT
TanStack3mo ago
28 replies
worthy-azure

Static site generation

https://x.com/tannerlinsley/status/1887914853215649947

How can I do static site generation (html files) when deplyong to Vercel?

I'm aware of this https://tanstack.com/start/latest/docs/framework/react/guide/static-prerendering but it seems to only work when I do NOT use the nitro plugin on vite.config.ts
Tanner Linsley (@tannerlinsley)
This @Tan_Stack Start app uses createServerFn/'use server', but is completely static. No server other than CDN.

https://t.co/aIQeoTcVWn

X

2/7/25, 5:22 PM

Static prerendering is the process of generating static HTML files for your application. This can be useful for either improving the performance of your application, as it allows you to serve pre-rend...
Static Prerendering | TanStack Start React Docs
Was this page helpful?