|
We have a subfolder inside our repository that contains the styleguide of the project of which the build should be deployed separately from our Next.js project. We have it inside this repo since it renders the components from the Next.js project and having the components in a separate repository for both the Next.js project and the styleguide to use is effort and complexity we'd like to avoid. As we didn't see ways to do multiple deployments (multiple build commandos, multiple output directories) it made sense to us to create a new project for the repository, but doing this results in a redirect to the existing Next.js project with the message "The project already exists.". So we're wondering if there is a way for either one repository to be used in multiple projects. Or have one project deploy a subdirectory somehow? Edit: |
Replies: 7 comments 15 replies
|
Vercel dashboard allows you to set subdirectory path to the project that you want to deploy. You can use it (it's what's i'm doing for myproject with multiple clients) |
|
The support guys are amazing, but I thought I'd share this here anyway - in case it saves someone some time. My need is a bit different, but I think it falls under the same heading, so here goes... I have one code base, which powers two different sites (i.e. two different vercel projects, each with their own ENVs, from the same repo). Previously one could run The way to do this in the current world is to find your teamId and the projectId and then to deploy each site using the following:
Thanks to @paulogdm from support who pointed me to: https://vercel.com/knowledge/using-vercel-cli-for-custom-workflows |
|
For the future reader. I've had a very quick and nice conversation with Vercel's support team about the matter. As they where fine with me quoting the conversation here: I asked:
And they replied:
|
|
Hi, I am migrating from old |
|
I have two questions:
My point is that as sescribed in https://vercel.com/blog/monorepos all projects of a monorepo are automatically deployed on a Git push into the repo. Sometimes I only want to deploy let's say the UI but keep the API intact. I found the safest approach to do so is to deploy using the cli.
|
|
I have two differents Vercel projects with the same monorepo codebase. Root directory is {
"git": {
"deploymentEnabled": {
"main": false
}
}
}When using So how can we deploy both projects manually ? |


https://vercel.com/blog/monorepos 🥳