Tutorial
3 min read

Collaborate on Vercel

Amplify collaboration and productivity with Vercel's CI/CD tools, such as Comments. Empower your team to build and deploy together seamlessly.
Table of Contents

Collaboration is key in successful development projects, and Vercel offers robust features to enhance collaboration among developers. From seamless code collaboration to real-time previews with Comments, Vercel empowers your team to work together effortlessly.

Now that your project is publicly available on your domain of choice, it’s time to begin making changes to it. With Vercel's automatic deployments, this won't require any extra effort. By default, when your Vercel project is connected to a Git repository, Vercel will deploy every commit that is pushed to the Git repository, regardless of which branch you're pushing it to.

A Production environment is one built from the main or development branch of your Git repository. A preview environment is created when you deploy from any other branch.

Vercel provides a URL that reflects the latest pushes to that branch. You can find this either on your dashboard, or in a pull request, which you'll see in the next step

This connection was established for you automatically, so all you have to do is push commits, and you will start receiving links to deployments right on your Git provider.

  1. Create a new branch in your project and make some changes

  2. Commit those changes and create a pull request. After a few seconds, Vercel picks up the changes and starts to build and deploy your project. You can see the status of the build through the bot comment made on your PR:

    Vercel for GitHub deploying a pull request automatically.
    Vercel for GitHub deploying a pull request automatically.
  3. Select Inspect to explore the build within your dashboard. You can see the build is within the preview environment and additional information about the deployment including: build information, a deployment summary, checks, and domain assignment. These happen for every deployment

    Vercel dashboard showing the preview deployment.
    Vercel dashboard showing the preview deployment.
  4. Return to your pull request. At this point your build should be deployed and you can select Visit Preview. You can now see your changes and share this preview URL with others.

Comments provide a way for your team or friends to give direct feedback on preview deployments. Share with others by doing the following:

  1. Open the preview deployment that you’d like to share by selecting the Domain from the deployment information as shown in step 3 above. Alternatively, you can find it by selecting your project from the dashboard, and selecting the most recent commit under Active Branches:

    Active branch section showing all non-production branches
    Active branch section showing all non-production branches
  2. From the Comments toolbar at the bottom of the screen, select Log in to comment and sign in with your Vercel account.

  3. Click the Share button on the Toolbar, and then on the Share dialog, either enter the user's email address or select Anyone with the link from the dropdown and copy the link to your clipboard.

    The Share settings modal.
    The Share settings modal.

    To learn more, see Sharing Deployments.

  4. The person you are sharing the preview with needs to have a Vercel account. To do so, they'll need to select Log in to comment and then enter their email address.

  5. Once the person you are sharing the preview with goes through the security options, they'll be ready to comment. You'll be notified of new comments through email, or when you visit the deployment.

For more information on using Comments, see Using comments.

Last updated on June 20, 2024