Has anyone deployed Tanstack Start in a pnpm monorepo on Vercel?
I keep getting a 404 on deploys..
My vite config:

6 Replies
eastern-cyan•5w ago
same for me
rising-crimson•5w ago
cc @pi0
@millu @Daniel S can you please provide a complete project ?
eager-peach•5w ago
@Daniel S @millu a screenshot of your deployment config would also be useful. do you set project root dir?
yappiest-sapphire•4w ago
Here my template and still works fine on vercel => https://github.com/CarlosZiegler/fullstack-start-template
GitHub
GitHub - CarlosZiegler/fullstack-start-template: This project provi...
This project provides a solid foundation for building modern web applications using a curated stack of technologies focused on developer experience, performance, and type safety. - CarlosZiegler/fu...
yappiest-sapphire•4w ago
BUT I am using Nitro V2 => https://github.com/CarlosZiegler/fullstack-start-template/blob/6bc17495b6619bc784f87dcf890623cf940357ec/vite.config.ts#L5 I have some issues when trying the alpha nitro
GitHub
fullstack-start-template/vite.config.ts at 6bc17495b6619bc784f87dcf...
This project provides a solid foundation for building modern web applications using a curated stack of technologies focused on developer experience, performance, and type safety. - CarlosZiegler/fu...
xenial-blackOP•4w ago
Hey all, appreciate the help. After discussing with Vercel support, I was able to fix it by:
- setting Root Directory to
apps/web
- setting Build Command to pnpm --recursive run build
Here is my example: https://github.com/dschlabach/tanstack-pnpm-monorepo-exampleGitHub
GitHub - dschlabach/tanstack-pnpm-monorepo-example
Contribute to dschlabach/tanstack-pnpm-monorepo-example development by creating an account on GitHub.
