Skip to content

Commit

Permalink
Using Environment Variables with the help of process.env.NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch-sriram committed Sep 14, 2020
1 parent f174133 commit 441642b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,5 @@ Dependency Installation: **`npm i --save redux-thunk`**
### Improving & Fixing 🛠 the 🍔🛠 Project

1. Fixing the Redirect to the Front Page: [Commit Details](https://github.com/Ch-sriram/burger-builder/commit/db00f5813046fc9dc33767d3b7c972134461da5e)
2.Sharing the Validation Method into `shared/utility.js`: [Commit Details](https://github.com/Ch-sriram/burger-builder/commit/39208e314246ccaac5ccfba6e1e2085b3563834c)
2. Sharing the Validation Method into `shared/utility.js`: [Commit Details](https://github.com/Ch-sriram/burger-builder/commit/39208e314246ccaac5ccfba6e1e2085b3563834c)
3. Using Environment Variables with the help of `process.env.NODE_ENV`: [Commit Details]()
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import burgerBuilderReducer from './store/reducers/burgerBuilder';
import orderReducer from './store/reducers/order';
import authReducer from './store/reducers/auth';

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const composeEnhancers = process.env.NODE_ENV === "development" ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : null || compose;

// REDUCER SETUP - Combining Reducers
const rootReducer = combineReducers({
Expand Down

0 comments on commit 441642b

Please sign in to comment.