Can we in Firebase roll back to a published version?
Yes, absolutely. This is a core feature of Firebase’s publishing tools, and it’s a real lifesaver. ![]()
The exact steps depend on what you published. Are you using the classic Firebase Hosting or the newer Firebase App Hosting?
1. For Firebase Hosting (The Most Common)
Firebase Hosting keeps a full history of every version you’ve ever deployed. You can roll back to any of them almost instantly.
-
Go to your Firebase Console (console.firebase.google.com).
-
In the “Build” menu on the left, click on Hosting.
-
You will see a “Release history” table with a list of all your deployments.
-
Find the previous, working version you want to restore. On the far right, click the three-dot (⋮) menu.
-
Select “Roll back”.
Your site will be restored to that older version, usually within a minute.
2. For Firebase App Hosting (The New One)
App Hosting is similar, but the workflow is based on “Builds” and “Rollouts.”
-
Go to your Firebase Console > App Hosting and click on your app’s backend.
-
Click the “Builds” tab. Here you’ll see a list of all your successful builds, tied to their Git commits.
-
Find the last good build that was working and copy its “Build ID” (it looks like
sha256:abc123...). -
Now, go back to the “Rollouts” tab and click the “Create rollout” button.
-
In the text box (the one that says “Branch to deploy”), paste the old Build ID you just copied. The “Create” button will light up.
This will start a new rollout using that old, stable build, effectively rolling you back to that version.
In short, yes! Your old versions are never truly gone; they are just waiting to be reactivated. ![]()