diff --git a/server/index.js b/server/index.js index 58bba691..9a1004f1 100644 --- a/server/index.js +++ b/server/index.js @@ -33,7 +33,7 @@ const log = require('./log'); const { sitemapStructure } = require('./sitemap'); const buildPath = path.resolve(__dirname, '..', 'build'); -const env = process.env.REACT_APP_ENV === undefined ? 'production' : process.env.REACT_APP_ENV; +const env = process.env.REACT_APP_ENV || 'production'; const dev = process.env.REACT_APP_ENV === 'development'; const PORT = process.env.PORT || 4000; const CLIENT_ID = diff --git a/src/config.js b/src/config.js index 856ac32e..dc6864a6 100644 --- a/src/config.js +++ b/src/config.js @@ -1,4 +1,4 @@ -const env = process.env.REACT_APP_ENV === undefined ? 'production' : process.env.REACT_APP_ENV; +const env = process.env.REACT_APP_ENV || 'production'; const dev = process.env.REACT_APP_ENV === 'development'; // To pass environment variables to the client app in the build