Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Previews and rollbacks

Every build is an immutable deployment. Preview deployments get their own URL so you can review before going live; when production breaks, promote any past deployment back to production in one click.

Deployment model

  • Each deployment is a complete directory of static output that is never modified after it's built.
  • A site's production URL is just a pointer to one deployment. Publishing a new version, rolling back, and promoting a preview to production all just move this pointer — instantly, with no rebuild.
  • A failed build never affects the live site.

Deployment statuses

StatusDescription
queuedWaiting to build; can be canceled
buildingBuilding; the dashboard shows a live log
readySucceeded; can be visited and promoted to production
failedFailed; error holds the reason and the log has the full output
canceledCanceled (or cleaned up for exceeding the retention limit)

Triggered by

The deployments list in the console shows who triggered each deployment. For deployments made with an API key (biti deploy, CI), it shows the member who created the key, plus the key's name and its start and end, such as biti_a1B2c••••Kd82mQx0Zt, so you can tell which key it was. Deployments triggered by a Git push show their source instead.

Preview deployments

A preview deployment is identical to a production deployment, except it doesn't move the production pointer and has its own URL:

https://<subdomain>--<last 8 chars of deployment id>-sites.butterix.com

Where preview deployments come from:

In a preview deployment:

  • A "Preview" banner appears at the top of the page;
  • Every page has noindex and robots.txt disallows crawling, so search engines won't index it;
  • Canonical URLs, the sitemap, and llms.txt use the preview URL as the origin;
  • Ask AI, MCP, and the playground proxy work just like on the live site, so you can review everything;
  • If the site has password protection, the preview URL requires the password too.

The preview URL of each build is kept for 30 days; after that, opening it shows that the preview has expired. A draft's fixed preview URL follows the draft and isn't affected by this limit.

Rollback: promote to production

On the dashboard's "Deployments" page, every deployment with status ready (including preview deployments and older production deployments) has a "Promote to production" button. Once confirmed, the production URL switches to that deployment immediately, and you can switch back at any time.

Via the API:

POST/deployments/:id/promote
curl -X POST https://api.butterix.com/v1/deployments/dpl_01jd8x2k7q/promote \
     -H "Authorization: Bearer <token>"

Promoting a preview deployment to production means "ship exactly what was reviewed" — what goes live is the very output you reviewed, with no rebuild.

Cancel a deployment

Queued (queued) deployments can be canceled. A deployment that has started building can't be stopped midway; builds running longer than 10 minutes are marked as failed.

Retention policy

The platform keeps files for the 20 most recent successful deployments per site (the current production deployment is always kept). Older deployments are cleaned up and marked canceled; their records stay in the list but can no longer be promoted to production. When the platform restarts, deployments that were queued or building are marked as failed and need to be redeployed.