following your issue and after a small search on Google please check this article from Vercel
https://vercel.com/docs/monorepos
Vercel explains exactly how to deploy the best 2 monorepo like NX and TrbueRepo
I tested it and it's working