Production Environment
Environments are the solution for the deployment lifecycle on the Vercel platform. Learn about the pre-production and production environment types here.This is the live environment where your application is accessible to end users. It represents the final and stable version of your application.
Production deployments are usually made when you do either of the following:
- When you merge or push to the production branch (commonly
main
) - When you make a deployment using the
vercel --prod
command
By default, when you trigger a production deployment, Vercel automatically updates the production domain(s) with the latest deployment of your application. It is possible to make a production deployment without assigning it to your domain by disabling auto-assignment of domains. This creates a staged build, which you then have to manually promote.
When you deploy to the production environment, you can assign a domain to the deployment. This domain is the URL that your users will visit to access your application.
To create an environment variables for your production environment, follow the steps to declare an environment variable and ensure you select Production as the environment.
Was this helpful?