SSR and Static Generation In latest Version? 1.121
Since updating to this version, it seems we have ditched
app.config.ts in favoure of a vite.config.ts
However, all of the commented stuff is now invalid and doesn't work:
Also in my ssr.tx I have errors like:
Also the SSR page is a 404:
https://tanstack.com/start/latest/docs/framework/react/ssr6 Replies
unwilling-turquoise•6mo ago
the tsr and server now go inside the plugin, which you seem to be missing:
addDirectory is now srcDirectory
sensitive-blueOP•6mo ago
ah
how about SSR and prerendering?
thx btw
almost there 🙂
oh wait, no
Looking a bit healthir
But still the
ssr.tsx is broken and there' sno instructions to fix it
apparently it doesn't need that now? Still can't get it to output static anywhereextended-salmon•6mo ago
I think it's server.tsx now?
extended-yellow•6mo ago
yes but that file is optional. if you dont have it, start will use a default one
extended-salmon•6mo ago
Yeah wasn't sure if it was customized at all
sensitive-blueOP•6mo ago
hmm yeah nothing I do seems to get it to output any html
currently running my site on bun runtime and it works, but be nice if the site could work 100% static