Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 732b1a7

Browse files
committed
🔧 modification de la config main pour sentry
1 parent dd138ec commit 732b1a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
import { enableProdMode } from '@angular/core';
22
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3-
import * as Sentry from "@sentry/angular";
4-
import { BrowserTracing } from "@sentry/tracing";
3+
import * as Sentry from '@sentry/angular';
4+
import { BrowserTracing } from '@sentry/tracing';
55

66
import { AppModule } from './app/app.module';
77
import { environment } from './environments/environment';
88

99
Sentry.init({
10-
dsn: process.env.NG_APP_SENTRY_DSN,
10+
dsn: environment.sentryDsn,
1111
integrations: [
1212
new BrowserTracing({
13-
tracingOrigins: ["localhost", "https://yourserver.io/api"],
13+
tracingOrigins: ['localhost', environment.baseUrl],
1414
routingInstrumentation: Sentry.routingInstrumentation,
1515
}),
1616
],
1717

1818
// Set tracesSampleRate to 1.0 to capture 100%
1919
// of transactions for performance monitoring.
2020
// We recommend adjusting this value in production
21-
tracesSampleRate: process.env.NG_APP_SENTRY_TRACES_SAMPLE_RATE,
21+
tracesSampleRate: environment.sentryTracesSampleRate,
2222
});
2323

2424
if (environment.production) {

0 commit comments

Comments
 (0)