Skip to content
Previously, consuming values provided by the Vercel platform in your Environment Variables (like the URL of your Deployment) required adding System Environment Variables using the "Environment Variables" page in the Project Settings.
All new Projects created as of today, however, will automatically receive all System Environment Variables by default – without you having to expose them explicitly.
This setting can also be controlled from existing Projects, which means that you can easily opt into the new behavior for those as well.
Furthermore, the available System Environment Variables were revamped to have much more straightforward names and don't differentiate between Git providers anymore. For example, you can now use VERCEL_GIT_COMMIT_REF to retrieve the Git commit SHA for GitHub, GitLab and Bitbucket instead of having to use several different System Environment Variables for that.
Check out the documentation as well.
Tweet