Refactor environment variable names.
This commit is contained in:
parent
4bfce9eff7
commit
bfc6d63090
@ -13,7 +13,7 @@ const environmentVars = `import {NgxLoggerLevel} from 'ngx-logger';
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: ${isProduction},
|
production: ${isProduction},
|
||||||
bloxbergChainId: ${process.env.CIC_CHAIN_ID || 8996},
|
bloxbergChainId: ${process.env.CIC_CHAIN_ID || 8996},
|
||||||
level: ${process.env.LOG_LEVEL || 'NgxLoggerLevel.ERROR'},
|
logLevel: ${process.env.LOG_LEVEL || 'NgxLoggerLevel.ERROR'},
|
||||||
serverLogLevel: ${process.env.SERVER_LOG_LEVEL || 'NgxLoggerLevel.OFF'},
|
serverLogLevel: ${process.env.SERVER_LOG_LEVEL || 'NgxLoggerLevel.OFF'},
|
||||||
loggingUrl: '${process.env.CIC_LOGGING_URL || 'http://localhost:8000'}',
|
loggingUrl: '${process.env.CIC_LOGGING_URL || 'http://localhost:8000'}',
|
||||||
cicMetaUrl: '${process.env.CIC_META_URL || 'https://meta.dev.grassrootseconomics.net'}',
|
cicMetaUrl: '${process.env.CIC_META_URL || 'https://meta.dev.grassrootseconomics.net'}',
|
||||||
|
@ -31,7 +31,7 @@ import {MutablePgpKeyStore} from '@app/_pgp';
|
|||||||
SharedModule,
|
SharedModule,
|
||||||
MatTableModule,
|
MatTableModule,
|
||||||
LoggerModule.forRoot({
|
LoggerModule.forRoot({
|
||||||
level: environment.level,
|
level: environment.logLevel,
|
||||||
serverLogLevel: environment.serverLogLevel,
|
serverLogLevel: environment.serverLogLevel,
|
||||||
serverLoggingUrl: `${environment.loggingUrl}/api/logs/`,
|
serverLoggingUrl: `${environment.loggingUrl}/api/logs/`,
|
||||||
disableConsoleLogging: false
|
disableConsoleLogging: false
|
||||||
@ -45,7 +45,7 @@ import {MutablePgpKeyStore} from '@app/_pgp';
|
|||||||
{ provide: ErrorHandler, useClass: GlobalErrorHandler },
|
{ provide: ErrorHandler, useClass: GlobalErrorHandler },
|
||||||
{ provide: HTTP_INTERCEPTORS, useClass: HttpConfigInterceptor, multi: true },
|
{ provide: HTTP_INTERCEPTORS, useClass: HttpConfigInterceptor, multi: true },
|
||||||
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
|
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
|
||||||
// { provide: HTTP_INTERCEPTORS, useClass: LoggingInterceptor, multi: true },
|
{ provide: HTTP_INTERCEPTORS, useClass: LoggingInterceptor, multi: true },
|
||||||
],
|
],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user