Skip to content

Commit

Permalink
fix: disable redux devtools in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemmmy committed Aug 26, 2024
1 parent 90345a6 commit d71e10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function initStore(): void {
sync : syncReducer
},

devTools: devToolsOptions,
devTools: process.env.NODE_ENV === "development" ? devToolsOptions : false,

middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
Expand Down

0 comments on commit d71e10b

Please sign in to comment.