Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit 5ded51e

Browse files
authored
Support for npm Private Modules (#96)
1 parent 63212a5 commit 5ded51e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

‎.buildpacks‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
https://github.com/heroku/heroku-buildpack-nodejs.git
2-
https://github.com/mars/create-react-app-inner-buildpack.git#v3.0.0
2+
https://github.com/mars/create-react-app-inner-buildpack.git#v4.0.0
33
https://github.com/heroku/heroku-buildpack-static.git

‎README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Deploy React.js web apps generated with [create-react-app](https://github.com/fa
2727
* [Compile-time config](#user-content-compile-time-configuration)
2828
* [Runtime config](#user-content-runtime-configuration)
2929
* [using an Add-on's config](#user-content-add-on-config-vars)
30+
* [npm Private Packages](#user-content-npm-private-packages)
3031
* 🕵️ [Troubleshooting](#user-content-troubleshooting)
3132
* 📍 [Version compatibility](#user-content-version-compatibility)
3233
* 🏙 [Architecture](#user-content-architecture-)
@@ -393,6 +394,17 @@ For example, to use the API key for the [Filestack](https://elements.heroku.com/
393394
export REACT_APP_FILEPICKER_API_KEY=${FILEPICKER_API_KEY:-}
394395
```
395396

397+
npm Private Packages
398+
-------------------
399+
Private modules are supported during build.
400+
401+
1. Setup your app with a `.npmrc` file following [npm's guide for CI/deployment](https://docs.npmjs.com/private-modules/ci-server-config).
402+
1. Set your secret in the `NPM_TOKEN` config var:
403+
404+
```bash
405+
heroku config:set NPM_TOKEN=xxxxx
406+
```
407+
396408
Troubleshooting
397409
---------------
398410

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /