Skip to content

Commit

Permalink
Merge pull request #164 from whereby/thomas/PAN-627-disable-devtools-…
Browse files Browse the repository at this point in the history
…in-prod

Disable redux devtools in prod
  • Loading branch information
thyal authored Dec 7, 2023
2 parents 67bdfb6 + 4529b2a commit f1c38ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/core/redux/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { rtcConnectionSlice } from "./slices/rtcConnection";
import { streamingSlice } from "./slices/streaming";
import { waitingParticipantsSlice } from "./slices/waitingParticipants";

const IS_DEV = process.env.REACT_APP_IS_DEV === "true" ?? false;

export const rootReducer = combineReducers({
app: appSlice.reducer,
chat: chatSlice.reducer,
Expand All @@ -40,6 +42,7 @@ export const createStore = ({
injectServices: ReturnType<typeof createServices>;
}) => {
return configureStore({
devTools: IS_DEV,
reducer: rootReducer,
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
Expand Down

0 comments on commit f1c38ef

Please sign in to comment.