Tanzu Platform for Cloud Foundry 4.0

Environment variables in Node buildpack

Last Updated March 13, 2025

Cloud Foundry provides configuration information to apps through environment variables. You can also use the additional environment variables provided by the Node buildpack.

For more information about the standard environment variables provided, see TAS for VMs Environment Variables.

Node buildpack environment Variables

The following table describes the environment variables provided by the Node buildpack:

Environment VariableDescription
BUILD_DIRThe directory where Node.js is copied each time a Node.js app runs.
CACHE_DIRThe directory Node.js uses for caching.
PATHThe system path used by Node.js:PATH=/home/vcap/app/bin:/home/vcap/app/node_modules/.bin:/bin:/usr/bin