Prerender not working when using TanStack Start with Nitro v2 plugin
Hi, I’m trying to prerender pages using tanstack-start + Nitro v2 plugin, but prerendering doesn’t generate any static output.
Here’s my vite.config.ts:
Expected: Nitro prerenders /docs into a static HTML file.
Actual: The build finishes successfully, but only the server output is generated (.output/server). No prerendered HTML files are created.
Has anyone successfully used prerendering with Nitro v2 + tanstack-start?
Any hints would be appreciated. 🙏
3 Replies
other-emerald•3w ago
does it work with the nitro v3 plugin?
noble-goldOP•3w ago
Yes it works. Here's my config:
and now how I verify prerender works ?
other-emerald•3w ago
add some logs to your components for example, they should print in the server terminal during prerendering but not when serving the initial request (hard reload)
so SSR should not happen for those