You can instantly rollback to a previous Production Deployment without rebuilding the previous Deployment using the Vercel CLI.
- Install the Vercel CLI, log in to your Vercel account, and select the correct scope using the
- In your project's Deployments tab, find the previous Production Deployment you wish to rollback to. To easily find this Deployment, you may want to filter for your Production Branch (e.g.
- Verify that the previous Production Deployment you will rollback to works as expected.
- Execute the following
vercel alias set [deployment-url] [custom-domain]
Make sure to use the Automatic URL for the
[deployment-url] parameter (e.g.
Make sure to not include the HTTP protocol (e.g.
https://) for the
vercel alias set hotdog-8jk8-coolcat.vercel.app sillyhotdog.im
vercel alias set hotdog-8jk8-coolcat.vercel.app https://sillyhotdog.im
This Vercel CLI command will need to be performed manually for each custom domain in your Production Deployment that needs to rollback to a previous Production Deployment.