Skip to content

Commit

Permalink
feat: ✨ redux dev tools enabled on github page
Browse files Browse the repository at this point in the history
  • Loading branch information
Can-Sahin committed May 5, 2020
1 parent 6aac0d3 commit aa890c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/configureStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export function configureAppStore(history?: History) {
const store = configureStore({
reducer: createReducer(),
middleware: [...getDefaultMiddleware(), ...middlewares],
devTools: process.env.NODE_ENV !== 'production',
devTools:
process.env.NODE_ENV !== 'production' ||
process.env.PUBLIC_URL.length > 0,
enhancers,
});

Expand Down

0 comments on commit aa890c5

Please sign in to comment.