Last updated on 9th February 2026

Environment Variables

Setting Environment Variables

Environment variables can be set at the project level or per deployment target.

Project-Level Variables

These are available during the build process and apply to all targets.

Target-Level Variables

These override project-level variables and are specific to a deployment target.

Sensitive Variables

Mark variables as sensitive to hide their values in the UI and deployment logs.

Built-in Variables

DeployHQ provides several built-in variables like DEPLOY_BRANCH, DEPLOY_COMMIT, and DEPLOY_TARGET.