Skip to content

Commit

Permalink
FIx process.env usage in variables (#328)
Browse files Browse the repository at this point in the history
* Read variables from process.env directly
  • Loading branch information
chrissantamaria authored Apr 29, 2021
1 parent 59738f2 commit 280f08d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*/
import isUndefined from './isUndefined';

const { NODE_ENV } = process.env;
// eslint-disable-next-line prefer-destructuring
const NODE_ENV = process.env.NODE_ENV;

export const IS_PROD = NODE_ENV === 'production';
export const IS_TEST = NODE_ENV === 'test';
Expand Down

0 comments on commit 280f08d

Please sign in to comment.