Ask Netlify
Our chatbot assistant can quickly answer your questions.

Deploy Previews

Deploy Previews allow you and your team to experience changes to any part of your site without having to publish them to production.

# Get started

By default, Netlify automatically builds Deploy Previews when you open pull / merge requests in a connected site repository from GitHub, GitLab, Bitbucket, or Azure DevOps.

The base branch must either be a production branch, or a branch that has branch deploys enabled.

Once the deploy is complete, you can access the Deploy Preview at the unique Deploy Preview URL.

To change these settings or to control who can access your previews, review the section below on how to configure Deploy Previews.

# Status and notifications

As Netlify starts to generate your Deploy Preview, a Deploy Preview status will appear on your pull / merge request. The status automatically updates to reflect the deploy progression. Once the status is marked as complete, you can access your Deploy Preview at the unique Deploy Preview URL.

If you have deploy notifications enabled, Netlify will also add a comment to your pull / merge request with a link to the Deploy Preview once it is ready.

# Configure Deploy Previews

In the Netlify UI, you can choose to disable Deploy Previews for all new pull / merge requests.

To disable or enable Deploy Previews for all new pull / merge requests:

  1. Go to

    , and select Configure.

  2. Choose whether to disable or re-enable Deploy Previews.

  3. To confirm, select Save.

If you can’t find this setting, ensure you have enabled continuous deployment for your site by linking to a Git repository.

# Protect all Deploy Previews with a password

You can control who can access your site’s Deploy Previews by requiring a password to visit your Deploy Preview. Review our site protection docs to learn more.

# Set environment variable values for Deploy Previews

You can set different environment variable values for each deploy context, including Deploy Previews. This can be helpful if you want to set a different CMS environment to use for production versus Deploy Previews, for example.

To set specific values for the Deploy Previews context, create your environment variables with the Netlify UI, CLI, API, or a Netlify Configuration file.

# Deploy Preview URLs

Deploy Previews work by deploying pull / merge requests to a unique URL different from the one your production site uses. This URL has the prefix deploy-preview followed by the identifier number of the pull request or merge request. For example, a Deploy Preview for pull / merge request #42 will deploy to

While the initial deploy for your pull / merge request is pending, this URL will result in a Not Found error. For subsequent changes, the web content of the Deploy Preview URL will update as changes are pushed to the pull / merge request and successfully deployed.

You can share this URL with your team to collaborate and gather feedback.

Every deploy also has a permalink that starts with the deploy ID number. For example: The contents of this URL never change, even after you redeploy your site.

Set up automatic deploy subdomains to ensure deploys are accessible

If you use Netlify DNS to manage a custom domain for your site, we recommend that you consider setting an automatic deploy subdomain for your Deploy Previews. This ensures that the deploys are not blocked by any third-party scripts or services that require this, such as local internet service providers.

# Collaborate on Deploy Previews

Using the Netlify Drawer on your Deploy Previews, you and your team can add, review, and manage feedback about site changes right from your site. You can leave comments, take screenshots and video, and test responsiveness on a mobile device.

You can open the Netlify Drawer with the keyboard shortcut ⌘\ on Apple or ^\ on Windows/Linux.

Netlify Drawer icon.

Learn more about using the Netlify Drawer in our docs on collaborating on deploys.

For troubleshooting guidance, check out our troubleshooting docs for using the Netlify Drawer.

Collaborate on deploys

Troubleshoot the Netlify Drawer