CoreMVP
After launch

Roll back

View as Markdown

A rollback restores an earlier app deployment; it does not undo database changes. Check the selected version against the current schema and data before rolling back.

Give your agent this prompt
Inspect the rollback options and database compatibility for <host>.
Follow https://coremvp.com/en/docs/deployment/after-launch/roll-back.md and its prerequisites.
Identify the Vercel deployment or Cloudflare Worker version and check database and credential compatibility; ask me before changing production.
After approval, check Vercel routes to that deployment or Cloudflare assigns that version 100% of traffic, and retry the failing journey.
Report what changed, the check results and anything you could not run.

Before making a change, identify the Vercel deployment ID or URL or Cloudflare Worker version ID and compare every intervening migration and data expectation with it. For Vercel, check the candidate build’s original environment and credentials still work with current dependencies, especially after a rotation. Ask for approval of that candidate.

bunx vercel rollback <deployment-id-or-url>

Replace <deployment-id-or-url> with the approved candidate. Or use Instant Rollback in the project’s Production Deployment tile (Vercel's rollback guide). Hobby can roll back only to the deployment just before the current one.

After a rollback, Vercel stops putting new production deployments on your domain. Once your fix is merged and deployed, put it live with:

bunx vercel promote <deployment-url>

In the Worker's Deployments tab, choose an earlier version and Rollback (Cloudflare's rollback guide). The next deployment replaces the rolled-back version, so check what it will deploy before you merge again.

Why the database is never rolled back

Each migration must keep the previous code working; follow Add first, use later. A rollback further back than one release can still encounter incompatible schema or data. Check the selected version against every intervening change before rolling back. Fix forward where possible. Do not reset a hosted database to repair a deploy.

Check it works

On Vercel, check production traffic routes to the approved deployment ID. On Cloudflare, check the new deployment assigns 100% of traffic to the approved Worker version ID; rollback creates a new deployment ID. Retry the failing journey on the live app URL. Then fix forward with Ship a change.

Was this page helpful?

On this page