File tree Expand file tree Collapse file tree
packages/demo/frontend/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/react' ;
22
3- if ( location . hostname . includes ( 'nusr.github.io' ) ) {
3+ if (
4+ typeof window !== 'undefined' &&
5+ window . location . hostname === 'nusr.github.io' &&
6+ ! Sentry . isInitialized ( )
7+ ) {
48 Sentry . init ( {
59 dsn : 'https://b292d91ba509038c141ecfc7d10e7bb7@o4506851168092160.ingest.us.sentry.io/4506851171041280' ,
610 integrations : [
@@ -20,11 +24,7 @@ if (location.hostname.includes('nusr.github.io')) {
2024 // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
2125 tracesSampleRate : 1.0 ,
2226 // Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
23- tracePropagationTargets : [
24- / ^ \/ / ,
25- / ^ h t t p s : \/ \/ n u s r .g i t h u b .i o \/ / ,
26- 'nusr.github.io' ,
27- ] ,
27+ tracePropagationTargets : [ / ^ h t t p s : \/ \/ n u s r \. g i t h u b \. i o / ] ,
2828 // Capture Replay for 10% of all sessions,
2929 // plus for 100% of sessions with an error
3030 // Learn more at
You can’t perform that action at this time.
0 commit comments