Recover a Previous Version
If a deployment breaks your app, the way to recover today is to redeploy a known-good version of your app. This guide covers the recovery flow and what to watch out for.
Recover by Redeploying a Known-Good Version
Section titled “Recover by Redeploying a Known-Good Version”The reliable recovery path is to rebuild and redeploy a version you know works, under the same app name. Varity replaces the deployment at that URL with what you just built.
-
Check out the last working version of your code
In your project, return to the commit (or tag/branch) you know was healthy:
Terminal window git checkout <known-good-commit> -
Build it
Terminal window npm run build -
Redeploy under the same name
Use the same
--nameyou deployed with originally so the app URL stays the same:Terminal window varitykit app deploy --name my-appYour app at
https://varity.app/my-app/(static) orhttps://my-app.varity.app/(dynamic) is replaced with the version you just built.
See What’s Currently Deployed
Section titled “See What’s Currently Deployed”List your deployments to confirm what’s live and which app names you own:
varitykit app listInspect a specific deployment’s details:
varitykit app info deploy-1737491000Check overall status:
varitykit app statusThings to Watch Out For
Section titled “Things to Watch Out For”Environment variable changes
Section titled “Environment variable changes”If the broken deployment introduced new environment variables that your code now depends on, redeploying the older code alone may not be enough. Check your environment variables after redeploying.
Database schema changes
Section titled “Database schema changes”If your app ran database migrations between the broken version and the version you’re restoring, redeploying the older app code may leave the schema ahead of the code. Test your app after redeploying before considering it stable.
Verify the Recovery Worked
Section titled “Verify the Recovery Worked”After redeploying, confirm the app is working:
varitykit app statusOpen the URL in your browser and confirm the expected behavior is restored.
Related
Section titled “Related”- Deploy Your App: full deployment guide
- Debugging Failed Deployments: diagnose the problem before you redeploy
- CLI Reference: deploy: all deploy command options
- MCP Server:
varity_deploy_status,varity_deploy_logs