vercel:tldr:3af98
The command vercel --build-env ${ENV}=${var}
is used to set environment variables during the build phase when deploying a project using Vercel.
Here's how the command is broken down:
-
vercel
: This is the CLI (Command Line Interface) command for the Vercel platform. It is used to deploy and manage projects. -
--build-env
: This is an option that allows you to set environment variables specifically for the build phase of your project. -
${ENV}
: This is a placeholder for the name of the environment variable you want to set. You need to replace${ENV}
with the actual name of the environment variable. -
=${var}
: This is the value assigned to the environment variable. The${var}
placeholder needs to be replaced with the desired value.
By running this command, you can set environment variables (with their respective values) that will be available during the build process of your project deployed on Vercel. These variables can be used to customize the build behavior or configure the project based on specific conditions defined by you.