GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Fixes prod init for sentry and reverts image generation plugin versions

parent ccffb2d0
import { ErrorHandler, Injectable } from '@angular/core';
import { captureException, init as SentryInit, showReportDialog } from '@sentry/browser';
import { captureException, init as SentryInit, setExtra, showReportDialog } from '@sentry/browser';
import { environment } from '../../environments/environment';
if (environment.production) {
SentryInit({
dsn: 'https://f16c02fdefe64c018f5d580d1cf05b56@sentry.io/1819496',
});
}
@Injectable({ providedIn: 'root' })
export class SentryErrorHandler implements ErrorHandler {
private readonly _enabled = environment.production && !['localhost', '127.0.0.1'].includes(location.hostname);
constructor() {
constructor() {}
SentryInit({
dsn: 'https://f16c02fdefe64c018f5d580d1cf05b56@sentry.io/1819496',
enabled: this._enabled,
});
setExtra('nonErrorException', true);
}
public handleError(error): void {
if (!environment.production) {
if (!this._enabled) {
return;
}
......
......@@ -43,7 +43,8 @@
"/backend/**",
"/rabbitmq/**",
"/rabbitmq-mgmt/**",
"https://polyfill.io/**"
"https://polyfill.io/**",
"https://sentry.io/**"
],
"cacheConfig": {
"strategy": "freshness",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment