feat: client revert
This commit is contained in:
parent
4cb7aa2a51
commit
a67f6b3918
|
|
@ -1,11 +1,6 @@
|
||||||
import * as Sentry from '@sentry/nextjs';
|
import * as Sentry from '@sentry/nextjs';
|
||||||
import { initializeSentryBasic } from '@gitroom/react/sentry/initialize.sentry.next.basic';
|
import { initializeSentryBasic } from '@gitroom/react/sentry/initialize.sentry.next.basic';
|
||||||
|
|
||||||
// Import or define frontendUrl, backendUrl and internalBackendUrl
|
|
||||||
const frontendUrl = process.env.FRONTEND_URL || 'http://localhost:4200';
|
|
||||||
const backendUrl = process.env.NEXT_PUBLIC_BACKEND_URL || 'http://localhost:3000';
|
|
||||||
const internalBackendUrl = process.env.BACKEND_INTERNAL_URL || 'http://localhost:3000';
|
|
||||||
|
|
||||||
export const initializeSentryClient = (environment: string, dsn: string) =>
|
export const initializeSentryClient = (environment: string, dsn: string) =>
|
||||||
initializeSentryBasic(environment, dsn, {
|
initializeSentryBasic(environment, dsn, {
|
||||||
integrations: [
|
integrations: [
|
||||||
|
|
@ -14,15 +9,6 @@ export const initializeSentryClient = (environment: string, dsn: string) =>
|
||||||
Sentry.replayIntegration({
|
Sentry.replayIntegration({
|
||||||
maskAllText: true,
|
maskAllText: true,
|
||||||
maskAllInputs: true,
|
maskAllInputs: true,
|
||||||
|
|
||||||
// Allow (Internal) API and Frontend requests to be captured
|
|
||||||
networkDetailAllowUrls: [
|
|
||||||
new RegExp(`^${frontendUrl}(?:/.*)?$`),
|
|
||||||
new RegExp(`^${backendUrl}(?:/.*)?$`),
|
|
||||||
new RegExp(`^${internalBackendUrl}(?:/.*)?$`)
|
|
||||||
],
|
|
||||||
networkRequestHeaders: ['X-Custom-Header'],
|
|
||||||
networkResponseHeaders: ['X-Custom-Header'],
|
|
||||||
}),
|
}),
|
||||||
Sentry.feedbackIntegration({
|
Sentry.feedbackIntegration({
|
||||||
// Disable the injection of the default widget
|
// Disable the injection of the default widget
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue