Skip to content

Commit da3d89f

Browse files
vicbmarkerikson
authored andcommitted
fix the check for dev mode (#3409)
Check `process.env.NODE_ENV` instead of `process.env`
1 parent d6bad9a commit da3d89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/recipes/ConfiguringYourStore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ This function follows the same steps outlined above, with some of the logic spli
195195
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:
196196

197197
```js
198-
if (process.env === 'development') {
198+
if (process.env.NODE_ENV === 'development') {
199199
middlewares.push(secretMiddleware)
200200
}
201201
```

0 commit comments

Comments
 (0)