mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-30 18:16:48 +10:00
Default to production environment
This commit is contained in:
parent
ce07746bee
commit
29160d6a45
2 changed files with 4 additions and 4 deletions
|
|
@ -33,8 +33,8 @@ const log = require('./log');
|
|||
const { sitemapStructure } = require('./sitemap');
|
||||
|
||||
const buildPath = path.resolve(__dirname, '..', 'build');
|
||||
const env = process.env.REACT_APP_ENV;
|
||||
const dev = env !== 'staging' && env !== 'production';
|
||||
const env = process.env.REACT_APP_ENV === undefined ? 'production' : process.env.REACT_APP_ENV;
|
||||
const dev = process.env.REACT_APP_ENV === 'development';
|
||||
const PORT = process.env.PORT || 4000;
|
||||
const CLIENT_ID =
|
||||
process.env.REACT_APP_SHARETRIBE_SDK_CLIENT_ID || '08ec69f6-d37e-414d-83eb-324e94afddf0';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
const env = process.env.REACT_APP_ENV;
|
||||
const dev = env !== 'staging' && env !== 'production';
|
||||
const env = process.env.REACT_APP_ENV === undefined ? 'production' : process.env.REACT_APP_ENV;
|
||||
const dev = process.env.REACT_APP_ENV === 'development';
|
||||
|
||||
// To pass environment variables to the client app in the build
|
||||
// script, react-scripts (and the sharetribe-scripts fork of
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue