@@ -7,7 +7,6 @@ require('dotenv').config({
7
7
8
8
const mainURL = process . env . GATSBY_DEFAULT_DOC_URL ;
9
9
const isProduction = mainURL === 'https://k6.io/docs' ;
10
- const isStaging = mainURL . startsWith ( 'https://staging.k6.io' ) ;
11
10
12
11
const shouldAnnouncementBannerBeShown = false ;
13
12
@@ -83,24 +82,6 @@ const plugins = [
83
82
] ,
84
83
} ,
85
84
} ,
86
- {
87
- resolve : 'gatsby-plugin-sentry' ,
88
- options : {
89
- dsn :
90
- 'https://[email protected] /5289132' ,
91
- // Optional settings, see https://docs.sentry.io/clients/node/config/#optional-settings
92
- environment : isProduction ? 'production' : 'staging' ,
93
- enabled : isProduction || isStaging ,
94
- ignoreErrors : [
95
- // that's a real bug we have, but I'm ignoring it for now.
96
- 'getBoundingClientRect' ,
97
- "Cannot read property 'getBoundingClientRect' of undefined" ,
98
- "TypeError: undefined is not an object (evaluating 'n.content.getBoundingClientRect')" ,
99
- 'n.content is undefined' , // same as above.
100
- ] ,
101
- denyUrls : [ ] ,
102
- } ,
103
- } ,
104
85
{
105
86
resolve : 'gatsby-plugin-google-fonts' ,
106
87
options : {
@@ -261,6 +242,15 @@ if (isProduction) {
261
242
allowLinker : true ,
262
243
} ,
263
244
} ) ;
245
+
246
+ plugins . push ( {
247
+ resolve : '@sentry/gatsby' ,
248
+ options : {
249
+ dsn :
250
+ 'https://[email protected] /5289132' ,
251
+ environment : 'production' ,
252
+ } ,
253
+ } ) ;
264
254
}
265
255
266
256
if ( process . env . BUCKET_NAME ) {
0 commit comments