Rollbacks
Every successful deployment is stored as an immutable snapshot. If a new deploy causes issues, you can roll back to any of the last 20 deployments with a single click, no rebuild required. StackBlaze simply re-deploys the previously built Docker image via a rolling update.
Rollbacks complete in 15–30 seconds because the image is already in the internal registry. There is no npm CLI — roll back from the dashboard or the deployments API.
Deployment history
Section titled “Deployment history”Recent deployments (last 20 shown):
| Commit | Message | When | Status |
|---|---|---|---|
a3f9c12 |
feat: add rate limiting | 2 hours ago | LIVE |
b2e8b11 |
fix: resolve auth bug | 5 hours ago | ROLLBACK |
c1d7a10 |
feat: user dashboard v2 | 1 day ago | |
d0c6z09 |
chore: update deps | 2 days ago |
Rollback from the API
Section titled “Rollback from the API”export STACKBLAZE_TOKEN=kbr_pat_…
# revisionId is the previous successful deploymentcurl -sS -X POST \ https://api.stackblaze.cloud/api/deployments/rollback/acme-app/production/api/REVISION_ID \ -H "Authorization: Bearer $STACKBLAZE_TOKEN"Step by step
Section titled “Step by step”-
Open the Deployments tab
Navigate to Service → Deployments. You will see a list of the last 20 successful deployments, ordered newest first. Each entry shows the commit hash, commit message, deployer, timestamp, and duration.
-
Select a previous deployment
Click on the deployment you want to roll back to. A detail panel slides open showing build logs, environment at time of deploy, and the exact Docker image tag. Verify this is the version you want before proceeding.
-
Click Rollback
Click the “Rollback to this version” button. StackBlaze immediately begins a rolling update using the stored Docker image, no rebuild is required. The rollback typically completes in 15–30 seconds.
-
Verify the rollback
Watch the Deployments tab as the rolling update completes. Once health checks pass on all replicas, the rolled-back version receives 100% of traffic. The deployment that caused the issue is retained in history for post-mortem analysis.