Skip to content

Commit 916fdde

Browse files
authored
fix(react-scripts): add filter to load env vars (#4)
1 parent fc301a9 commit 916fdde

File tree

1 file changed

+2
-2
lines changed
  • packages/react-scripts/config

1 file changed

+2
-2
lines changed

packages/react-scripts/config/env.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ process.env.NODE_PATH = (process.env.NODE_PATH || '')
6666

6767
// Grab NODE_ENV and REACT_APP_* environment variables and prepare them to be
6868
// injected into the application via DefinePlugin in Webpack configuration.
69-
// const REACT_APP = /^BKN_APP_/i;
69+
const REACT_APP = /^REACT_APP_/i;
7070

7171
function getClientEnvironment(publicUrl) {
7272
const raw = Object.keys(process.env)
73-
// .filter(key => REACT_APP.test(key))
73+
.filter(key => REACT_APP.test(key))
7474
.reduce(
7575
(env, key) => {
7676
env[key] = process.env[key];

0 commit comments

Comments
 (0)