Learn how to set up and use the Continuous Integration and Continuous Deployment pipeline for preview and production environments.
Branch Tracking
for the Preview
environment in the Vercel dashboard so that we can avoid automatic deployments.
Please also make sure to assign the appropiate domains to the Preview (preview.example.com)
and Production (example.com)
environments.
Push Code to preview
Preview Build
preview.example.com
) - which we have defined earlier.Production Build
example.com
) - which we have defined earlier..env
variables should be the same so that we can test the whole project in the preview environment before switching to production.