@@ -7,7 +7,6 @@ require('dotenv').config({
77
88const mainURL = process . env . GATSBY_DEFAULT_DOC_URL ;
99const isProduction = mainURL === 'https://k6.io/docs' ;
10- const isStaging = mainURL . startsWith ( 'https://staging.k6.io' ) ;
1110
1211const shouldAnnouncementBannerBeShown = false ;
1312
@@ -83,24 +82,6 @@ const plugins = [
8382 ] ,
8483 } ,
8584 } ,
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- } ,
10485 {
10586 resolve : 'gatsby-plugin-google-fonts' ,
10687 options : {
@@ -261,6 +242,15 @@ if (isProduction) {
261242 allowLinker : true ,
262243 } ,
263244 } ) ;
245+
246+ plugins . push ( {
247+ resolve : '@sentry/gatsby' ,
248+ options : {
249+ dsn :
250+ 'https://[email protected] /5289132' , 251+ environment : 'production' ,
252+ } ,
253+ } ) ;
264254}
265255
266256if ( process . env . BUCKET_NAME ) {
0 commit comments