by anova-technology



Heroku buildpack for modifying the .npmrc file based on .env variables


Add the buildpack

  1. On the settings page for your app, e.g., find the Buildpacks section.
  2. Click on the 'Add buildpack' button.
  3. Provide the URL for this repository:
  4. Click 'Save Changes'
  5. Verify that this build pack is used before the heroku/nodejs build pack.
    • If you have already added heroku/nodejs, use the UI to re-order the build packs so that npmrc-buildpack comes first.
    • If you haven't added heroku/nodejs, add it now. It should be placed after heroku-buildpack-npmrc.

Set the environment variable

While still on the settings page, add an environment variables as such:

  • TOKEN=00000000-0000-0000-0000-000000000000