---
title: "How to rollback a deploy in 2 seconds on Netlify"
description: "Learn how to rollback to a previous stable deploy on Netlify"
source: "https://www.netlify.com/blog/2021/07/12/how-to-rollback-a-deploy-in-2-seconds-on-netlify/"
last_updated: "2026-07-10T23:59:49.000Z"
---
Okay, let’s talk about rollbacks in a minute. As you may already know, they are one of the most interesting features of the Jamstack. Having the ability to roll back to a previous deploy in seconds to recover from an error is simply great!

The idea of rollbacks is possible on the Jamstack because of [atomic](https://jamstack.org/glossary/atomic/) and [immutable](https://jamstack.org/glossary/immutable/) deploy concepts which ensure that each deploy on your site can function as an independent entity. This means you can rollback to any site deploy at any time.

### So how does it work on Netlify

Why do such much talking when I can show you instead? At the moment, I have [this site](https://largesite-demo.netlify.app/) hosted on Netlify. If you watch me as I hover around the Navbar, you’ll notice that the link color gets darker as I focus on them.

![demo of a working site](https://res.cloudinary.com/kennyy/video/upload/f_gif/v1625668863/working_site.gif)

That is the behaviour I want on this site, and that is the behaviour that my users are familiar with. It is accessible and the code has already passed all production tests. But what if I (unintentionally) deploy a new version of this site that breaks that behaviour?. Maybe in an attempt to make the Navbar fancier, I end up something like this:

![demo of the broken site](https://res.cloudinary.com/kennyy/video/upload/v1625668863/broken_site.gif)

Chaos right? this could potentially put me in trouble at work or with the client that I’ve built the site for. This behaviour will also impact the end-users, in which case I might end up trending on Twitter for all the wrong reasons. The good news is, If this happens, I can just rollback to the previous version in a few seconds like this:

-   Go to your `Deploys` tab
-   Select the previous production deploy
-   Click publish deploy
-   It’s done!

![demo of the rollback process](https://res.cloudinary.com/kennyy/video/upload/v1625675134/perfectly_working_av1rln.gif)

And just like that, you’re back to a stable working version of your site just by the click of a button. Now you can go and figure out what went wrong with the faulty deploy and fix it when your users continue surfing the site like nothing happened.

You might have also noticed in the demo that we get the option to `lock publishing to this deploy`. This gives you the option to say, whatever happens, this deploy will always be the published one. You can commit more code and Netlify will build those new versions but the locked deploy will remain published on your site until you enable auto publishing again.

That’s it! if you’ve been wondering how to rollback a production site on Netlify, I hope this was all you needed to figure it out.

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=How to rollback a deploy in 2 seconds on Netlify&url=https://www.netlify.com/blog/2021/07/12/how-to-rollback-a-deploy-in-2-seconds-on-netlify//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2021%2F07%2F12%2Fhow-to-rollback-a-deploy-in-2-seconds-on-netlify%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2021/07/12/how-to-rollback-a-deploy-in-2-seconds-on-netlify//)
-   [Bluesky](https://bsky.app/intent/compose?text=How to rollback a deploy in 2 seconds on Netlify+https://www.netlify.com/blog/2021/07/12/how-to-rollback-a-deploy-in-2-seconds-on-netlify//)

* * *

### Tags

-   [rollbacks](/blog/tags/rollbacks/)
-   [Jamstack](/blog/tags/jamstack/)
-   [Netlify](/blog/tags/netlify/)

## Keep reading

![](/_astro/3f45eb6eda4ea8814be310e3df4a7883a5bd9ba0-1200x675_ZcBDUS.webp)

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/8fe9e8a23f944c9912003233d99a2df7fee637cf-1600x900_Z1gMhmf.webp)

Guides & Tutorials May 15, 2026

[

### Tracking AI search traffic: how to use Netlify Log Drains to maximize AEO

](/blog/tracking-ai-search-traffic)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

## Recent posts

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

News & Announcements June 24, 2026

[

### How we measure Netlify’s Agent Experience

](/blog/how-we-measure-netlify-agent-experience)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

Guides & Tutorials May 15, 2026

[

### How to build a real-time AI chatbot in minutes with Netlify Agent Runners (no backend)

](/blog/how-to-build-a-real-time-ai-chatbot-in-minutes-with-netlify-agent-runners-no-backend)

-   ![Profile picture of Nahrin Jalal](/_astro/f0e7c8f227a03fe58340c99ef5439d5a896c0733-272x272_Z23kDpD.webp)
    
    Nahrin Jalal
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)