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
adverse-sapphire•3mo ago
the tsr and server now go inside the plugin, which you seem to be missing:
addDirectory is now srcDirectory
variable-limeOP•3mo 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 anywhereambitious-aqua•3mo ago
I think it's server.tsx now?
conscious-sapphire•3mo ago
yes but that file is optional. if you dont have it, start will use a default one
ambitious-aqua•3mo ago
Yeah wasn't sure if it was customized at all
variable-limeOP•3mo 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