mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-25 22:37:18 +10:00
Change to cleaner syntax for environment check
This commit is contained in:
parent
58d19378a5
commit
85fbccb2fd
2 changed files with 2 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue