Vercel target in Nx monorepo results in 404
I have following config:
And this settings in Vercel (see screenshot), it successfully builds, but then I see only 404 (see screenshot 2).


3 Replies
rare-sapphire•8mo ago
I solved this (I guess hackily) in my monorepo setup for nx, I have a build step that copies the
dev.config.ts
file in each app directory to root app.config.ts
:
Then add app.config.ts
to .gitignore
- this way you can run dev using the dev config, and at build time it uses the app config, but its never committed anywhere
dev.config.ts
for reference:
rare-sapphire•8mo ago
And the vercel build commands

deep-jadeOP•8mo ago
Thanks, I'll try. But meanwhile I migrated from Vite, because... I just hate it so much (tons of bugs and weird fixes because CJS etc.). So now I am using RsPack + Tanstack Router only. 😄