My Tanstack Start project is slow.
My TanStack Start project taking so long 22s to start, I wonder if there's a problem.
My project is not big
I use only Typescript, Tailwind, Cloudflare/Wrangler, TanStack Start/Router/Query. React/ReactDom
And some tiny depencies, zustand, fflate, font rubik, tailwind-merge
My Project, just npm to
pnpm i and pnpm run dev the .env is not necessary.
https://github.com/Hardel-DW/studio.voxel
Are there any debugging tools to find out what's wrong?
If I launch it a second time, it drops to 2.6 seconds.GitHub
GitHub - Hardel-DW/studio.voxel
Contribute to Hardel-DW/studio.voxel development by creating an account on GitHub.


6 Replies
foreign-sapphireOP•3w ago
It would be very interesting to know how I could debug this kind of thing. Are there any tools available?
foreign-sapphire•3w ago
Try turning on vite debug output
You’ll see a lot of logs when you start the server but they should tell you where the time is being spent
foreign-sapphire•3w ago

foreign-sapphireOP•3w ago
Ok thanks, i try
Okay i found something interresting.
cloudflare({ viteEnvironment: { name: 'ssr' } }),Wihout cloudlfare the server start in 1.5s, with it increases to 2.5. So 1000ms for cloudflare. 1600ms for vite plugin loading cloudflare, tanstackStart, tailwindcss, react with compiler. 277ms SSR deps check 544ms Client deps check Tailwind and React plugin has no really impact I think I've solved my problems.
eastern-cyan•3w ago
So cloudflare was the issue?
foreign-sapphireOP•3w ago
What I seem to understand is that their plugins are slow.
I'm at 2.5 seconds, but I haven't done anything special to fix the issue.
I'll see if the bug comes back.