You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
* Use Node buildpack‘s auto build
* Remove NODE_ENV=development workaround since Node buildpack installs devDeps for build & auto-runs build.
* 📚 link to Dev Center for Node.js build customization
* Switch to new Node auto build behavior ahead of release
* Upgrade to "Node auto build" release version of inner buildpack
Supports all config vars, including [`REACT_APP_`](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-custom-environment-variables), `NODE_`, `NPM_`, & `HEROKU_` prefixed variables.
362
+
363
+
☝️🤐 ***Use secrets carefully.** If these values are embedded in the JavaScript bundle, like with `REACT_APP_` vars, then they may be accessed by anyone who can see the React app.*
362
364
363
365
Use Node's [`process.env` object](https://nodejs.org/dist/latest-v10.x/docs/api/process.html#process_process_env).
364
366
@@ -528,15 +530,12 @@ This buildpack combines several buildpacks, specified in [`.buildpacks`](.buildp
528
530
* installs `node`, puts on the `$PATH`
529
531
* version specified in [`package.json`, `engines.node`](https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version)
530
532
*`node_modules/` cached between deployments
531
-
*`NODE_ENV` at buildtime:
532
-
* defaults to `NODE_ENV=development` to install the build tooling of create-react-app's dev dependencies, like `react-scripts`
533
-
* honors specific setting of `NODE_ENV`, like `NODE_ENV=test` for [automated testing](#user-content-testing) in [`bin/test`](bin/test-compile)
534
-
* but forces `NODE_ENV=production` to be `development` to ensure dev dependencies are available for build
0 commit comments