Skip to content

Commit

Permalink
fix the check for dev mode (reduxjs#3409)
Browse files Browse the repository at this point in the history
Check `process.env.NODE_ENV` instead of `process.env`
  • Loading branch information
vicb authored and markerikson committed Apr 19, 2019
1 parent e70744f commit 8bc76bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/recipes/ConfiguringYourStore.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ This function follows the same steps outlined above, with some of the logic spli
For example, it is common to add some middleware only when in development mode, which is easily achieved by pushing to the middlewares array inside an if statement:

```js
if (process.env === 'development') {
if (process.env.NODE_ENV === 'development') {
middlewares.push(secretMiddleware)
}
```
Expand Down

0 comments on commit 8bc76bf

Please sign in to comment.