Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Support for npm Private Modules (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
mars committed Mar 26, 2018
1 parent 63212a5 commit 5ded51e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .buildpacks
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
https://github.com/heroku/heroku-buildpack-nodejs.git
https://github.com/mars/create-react-app-inner-buildpack.git#v3.0.0
https://github.com/mars/create-react-app-inner-buildpack.git#v4.0.0
https://github.com/heroku/heroku-buildpack-static.git
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Deploy React.js web apps generated with [create-react-app](https://github.com/fa
* [Compile-time config](#user-content-compile-time-configuration)
* [Runtime config](#user-content-runtime-configuration)
* [using an Add-on's config](#user-content-add-on-config-vars)
* [npm Private Packages](#user-content-npm-private-packages)
* 🕵️ [Troubleshooting](#user-content-troubleshooting)
* 📍 [Version compatibility](#user-content-version-compatibility)
* 🏙 [Architecture](#user-content-architecture-)
Expand Down Expand Up @@ -393,6 +394,17 @@ For example, to use the API key for the [Filestack](https://elements.heroku.com/
export REACT_APP_FILEPICKER_API_KEY=${FILEPICKER_API_KEY:-}
```

npm Private Packages
-------------------
Private modules are supported during build.

1. Setup your app with a `.npmrc` file following [npm's guide for CI/deployment](https://docs.npmjs.com/private-modules/ci-server-config).
1. Set your secret in the `NPM_TOKEN` config var:

```bash
heroku config:set NPM_TOKEN=xxxxx
```

Troubleshooting
---------------

Expand Down

0 comments on commit 5ded51e

Please sign in to comment.