@mayven I think this may be the root of the problem or at least one of the problems:
This is a hard limitation of the v0 environment that I need to surface honestly.
**The v0 build pipeline requires the Next.js app root at the repository root (
/).** The build system runsnext dev/next buildfrom/vercel/share/v0-project/and expects next.config.mjs, package.json, tsconfig.json, andapp/to exist at that level. There is no way to configure it to targetapps/webas the build root – there is no Turborepo workspace support, no customrootDiroverride, and no way to change the working directory of the build command.Concretely, if I move everything under
apps/web/:
- The dev server will fail because it won’t find next.config.mjs at root
- package.json at root is what drives dependency installation – a nested one won’t be picked up
- The preview/deploy pipeline has no mechanism to
cd apps/web && next build
It feels like v0 really expects a pretty strict environment to work in - I would assume more flexibility given its’ trying to work in ‘other peoples repos’ - but again maybe I am missing some fundamental point here…