Skip to content
Snippets Groups Projects
Commit 46ff1544 authored by Björn Fischer's avatar Björn Fischer :new_moon_with_face:
Browse files

fix: Cannot enable prod mode after platform setup.

parent 152643c0
No related branches found
No related tags found
1 merge request!76Bugfix
......@@ -5,7 +5,7 @@
*/
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { APP_INITIALIZER, isDevMode, LOCALE_ID, NgModule } from '@angular/core';
import { APP_INITIALIZER, LOCALE_ID, NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
......@@ -110,7 +110,7 @@ function cashewConfig() {
EffectsModule.forRoot([AppEffects]),
StoreDevtoolsModule.instrument({
maxAge: 25, // Retains last 25 states
logOnly: !isDevMode(), // Restrict extension to log-only mode
logOnly: environment.production, // Restrict extension to log-only mode
autoPause: true, // Pauses recording actions and state changes when the extension window is not open
//trace: false, // If set to true, will include stack trace for every dispatched action, so you can see it in trace tab jumping directly to that part of code
//traceLimit: 75, // maximum stack trace frames to be stored (in case trace option was provided as true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment