Skip to content

Expanding Variables

You can expand variables already available on your machine for use in your .env

For example:

Terminal window
VERSION=$npm_package_version
HOSTNAME=$HOSTNAME

Or expand variables local to the current .env file:

Terminal window
DOMAIN=www.example.com
FOO=$DOMAIN/foo
BAR=$DOMAIN/bar