diff --git a/client/src/app/app.reducer.ts b/client/src/app/app.reducer.ts index d35a1319b646cc92f2b6057c6d6f54a421ffff2f..26c5ea0d66124663115b3bbbe53feb956c53fa28 100644 --- a/client/src/app/app.reducer.ts +++ b/client/src/app/app.reducer.ts @@ -10,6 +10,8 @@ import { ActionReducerMap, ActionReducer, MetaReducer } from '@ngrx/store'; import { RouterReducerState, routerReducer } from '@ngrx/router-store'; +import { environment } from 'src/environments/environment'; + export interface State { router: RouterReducerState; } @@ -31,5 +33,7 @@ export function debug(reducer: ActionReducer<any>): ActionReducer<any> { return nextState; }; } - -export const metaReducers: MetaReducer<any>[] = [debug]; + +export const metaReducers: MetaReducer<any>[] = !environment.production + ? [debug] + : [];