Skip to content

Changelog

Friday, November 20th 2020

System Environment Variables are now available by default

Cover for System Environment Variables are now available by default

Posted by

Avatar for lucleray

Luc Leray

@lucleray

Avatar for anatrajkovska

Ana Jovanova

@anatrajkovska

Avatar for leo

Leo Lamprecht

@notquiteleo

Cover for System Environment Variables are now available by default

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

Develop.
Preview.
Ship.

The development platform for the best frontend teams.