The new v0 brings production-ready AI coding to enterprises with git workflows, security, and real integrations. Ship faster with agents and teams.
The announcement says:
Work on existing codebases
Instead of engineers spending weeks on re-writes for production, v0’s new sandbox-based runtime can import any GitHub repo and automatically pull environment variables, and configurations from Vercel.
Every prompt generates production-ready code in a real environment, and it lives in your repo. No more copying code back and forth.
Question
Has anyone been able to do this? I see no way to hook v0 up to an existing code base.
@mayven thanks I’m not sure that is what I’m looking for though. I’m not trying to import a repo. I want to have a buy directional set up where Leo is connected to my repo can create branches actively so I’m not importing my repo. I’m connecting it to my repo. Can I do that?
@jacob-8441 you can indeed, when you go through the Import from GitHub flow, you can connect it to your existing repo.
Once connected, each new v0 chat creates a dedicated branch off main so you can make changes in isolation, then once ready you can open the PR from v0.
@mayven not in this team account. But to be honest I’m not sure. This project I am creating in my screenshot is 100% new, I am choosing the ‘create new project’ option on the funnel.
Also, if I go to our older, existing vercel account, and hit the button to launch v0, I see the same thing:
It looks like the Git connection / import was successful, but the previews aren’t initialising successfully.
They look like different errors on the different chats, so it’s difficult to know the source of the errors without the full context. However, you can try the Fix with v0 button to see if it can help get them working.
@mayven Yes so thats’ the problem, I’m hesitant to ‘fix’ errors on our repo…since, in theory our repo works fine. Again, maybe I’m missing something here. My assumption is we can hook v0 up to our repo, have it cut a branch, do some excellent interfaces, and then have that pulled back in and integrated.
It feels like based on these errors, the repo has to be in some ‘v0’ format to function…in other word v0 is expecting a structure it can work in, which seems to go beyond just a repo connection..
I’m not really sure, just seems like this should be easier, or I’m just not doing this right…
@mayven here is one random example, but they are all similar, basically v0 is expecting, I believe some core structures in my repo, an so when it doesn’t find them, it errors out…
@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 runs next dev / next build from /vercel/share/v0-project/ and expects next.config.mjs, package.json, tsconfig.json, and app/ to exist at that level. There is no way to configure it to target apps/web as the build root – there is no Turborepo workspace support, no custom rootDir override, 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…
Hey @jacob-8441, the v0 team has let me know that this is a known limitation that they’re actively working on, and they still do typically expect a single app repository to show a preview.
They’ve advised that even if there are errors with running preview, you can still prompt to make changes and look at preview deployments.
If you’d like to share any chat URLs, so that the team can look into this specific case further, feel free
Hopefully some improvements soon, appreciate your understanding!