We’re working on performance optimizations and having a hard time using our staging/preview environment to get consistent measurements.
What we’d like to do is create a second project in which the production build is based on a staging/testing branch in our repo, and not on the main branch that our main Vercel project is based on.
Is this possible? In the UI we only see the option to create a new project based on the main branch.
Hello @jpvrs the new project creation flow in the UI includes importing via a Git provider or using one of the provided templates. Would you be open to trying the Vercel CLI to create a new project? If so, you can run the following (replacing <project-name>) to create a new project in your team scope:
This will create a new, blank project, and you can further configure the project to build only on Preview – I recommend reviewing Git Settings > Ignored Build Step.
Once you’ve configured the second project to build for staging/preview environments, then you can connect the project to a Git provider repository.