Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Remove injected APP_ROOT as this may change after build
Browse files Browse the repository at this point in the history
For example CI servers don't have same build path as final production server path
  • Loading branch information
fastner committed Feb 12, 2017
1 parent 9721029 commit 540c36b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/webpack/ConfigFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,6 @@ function ConfigFactory({ target, mode, root = CWD, ...options })
// builds as React relies on process.env.NODE_ENV for optimizations.
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV),

"process.env.APP_ROOT": JSON.stringify(path.resolve(root)),

// All the below items match the config items in our .env file. Go
// to the .env.example for a description of each key.
"process.env.SERVER_PORT": process.env.SERVER_PORT,
Expand Down

0 comments on commit 540c36b

Please sign in to comment.