heroku-buildpack-npm-build-using-env

by pagecloud

GitHub Readme.md

heroku-buildpack-npm-build-using-env

  1. To be run after the heroku/nodejs buildpack, on nodejs >= 6
  2. Loads every environment variable named in an array at key herokuBuildEnvironment in package.json
  3. Executes npm run build:prod

Why?

Heroku environment variables are not loaded into memory at compile time but are sleeping in the file system, though your build system needs them.