Is is possible to do ssr without vinxi?
Hey team, I plan on moving this webapp: https://utc.dance to tanstack start.
I initialized the project from the shadcn website which had set me up with vite instead of with vinxi. My understanding is that vinxi is used for server-side stuff but it's soon going to get replaced, so I'm okay with the choice it made for me.
I also looked at the example project for ssr and see that it does not require vinxi for ssr, but requires express, node-fetch, serve-static, etc. for development. I'm not sure about jumping into it with all the setup because of this issue: https://github.com/TanStack/router/issues/3195
What is currently the best way to do ssr right now? The doc listed here: https://tanstack.com/start/latest/docs/framework/react/ssr
seems to be lacking a lot of setup compared to the ssr example and when I checked was not server-rendering.
Thank you for the help.
GitHub
Docs: SSR streaming example error · Issue #3195 · TanStack/router
Which project does this relate to? Start Describe the bug This example crashes the dev server: https://tanstack.com/router/latest/docs/framework/react/examples/basic-ssr-streaming-file-based Termin...
SSR | TanStack Start React Docs
Server-side rendering (SSR) is the process of rendering your application on the server and sending or streaming the rendered HTML to the client. This can be useful for both improving the performance o...
6 Replies
plain-purple•6mo ago
should be posted into #router-questions then
if you dont want to use start
quickest-silver•6mo ago
Do you want the benefits of start and or do you just want to use your own backend and tanstack router.
quickest-silverOP•6mo ago
@Manuel Schiller I'm confused am I not using Tanstack Start? I clicked on Tanstack Start section on shadcn and ran the command to init the project.
ok I'm realizing that the ssr examples are listed in the Tanstack Router section lol Will switch to the setup using vinxi now.
If the distinction between tanstack router + ssr vs tanstack start is important shadcn doc should update to call it tanstack router or update the command being run.
rare-sapphire•6mo ago
I had the same problem.
The setup from Shadcn is based on tanstack router not start.
I ended up doing the entire configuration by myself. I took the basic configuration repo from here: https://stackblitz.com/github/tanstack/router/tree/main/examples/react/start-counter
Then, I installed tailwind then shadcn. The shadcn components seem to be working but I still have issues with Tailwind.
StackBlitz
Router Start Counter Example - StackBlitz
Run official live example code for Router Start Counter, created by Tanstack on StackBlitz
quickest-silverOP•6mo ago
Thank you
so to clear up the mental model here what makes tanstack start tanstack start atm is vinxi, and I could do ssr without vinxi but then I would be doing tanstack-router not tanstack start.
plain-purple•6mo ago
exactly