News & Announcements

Introducing Deploy Previews in Netlify

News & Announcements

Introducing Deploy Previews in Netlify

2021 Update: Deploy Previews have some new features to make collaborating even easier. Learn more about Collaborative Deploy Previews->

There is a better way to build for the web and collaborate with your team.

For years, developers have enjoyed the benefits of practices like Continuous Integration and Continuous Delivery in their workflows. Unfortunately, traditional hosting platforms only allow you to deploy your sites to the same URL every time. You need to manually create new sites to allocate new URLs if you test and verify changes before putting them into production. These limitations make CI and CD tedious and hard to implement for websites and frontend applications.

Today, we’re very excited to introduce our solution to these problems, Deploy Previews. This will allow you and your team to see what changes will look like in production, without having to deploy them in your existing site.

For instance, last Monday, we published a blog about Slack notifications. Prior to posting, I had a deploy preview URL available for my team to review, make improvements and comment. This can be done with any page on any site using Deploy Previews on Netlify.

Deploy Previews work by deploying every pull request from your Git repository to a unique URL; completely different from the one your main site uses. You and your team can see how those changes look before they’re merged into the main branch and deployed to production.

To help you discover Deploy Previews, we put those links where it helps your team the most, directly in the pull request as commit statuses:

netlify deploy preview example success

We keep this preview up to date as you continue to work, committing new changes to the same branch. Our CDN takes care of invalidating the cache every time for you.

netlify deploy preview workflow

Deploy Previews work with most Git hosting supported by Netlify, currently GitHub and GitLab. They are available for all our pricing plans, including free sites. You only need to add commit hooks to your Netlify sites, we take care of the rest. We’ve also integrated Deploy Previews with other notifications, like Slack’s incoming webhooks:

netlify deploy preview slack notifications

We’ve been using Deploy Previews internally for some time and they’ve already improved the way we develop and release all our frontend applications significantly. We hope you find them as useful as we do and start enjoying the benefits of Continuous Delivery for all your projects on Netlify.


*This post has been featured on Netlify Milestones on the road to 1 Million Devs*:

Netlify 1 Million Devs article feature

Keep reading

Recent posts

Book cover with the title Deliver web project 10 times faster with Jamstack enterprise

Deliver web projects 10× faster

Get the whitepaper