@@ -5,14 +5,12 @@ import path from 'path'
55import tailwindcssPostcss from '@tailwindcss/postcss'
66import postcssNested from 'postcss-nested'
77
8- import 'dotenv/config'
98import './src/config/prismjs/dvc.js'
109import './src/config/prismjs/dvctable.js'
1110import simpleLinkerTerms from './content/linked-terms.js'
1211import redirectsMiddleware from './server/redirect.js'
1312import customYoutubeTransformer from './src/config/custom-yt-embedder.js'
1413import makeGitHubMarkdownCssUseThemeAttribute from './src/config/postcss-theme-attribute.js'
15- import sentryConfig from './src/config/sentry.js'
1614
1715const require = createRequire ( import . meta. url )
1816const rootDir = import . meta. dirname
@@ -45,7 +43,6 @@ const docsPath = path.resolve('content', 'docs')
4543const docsInstanceName = 'docs'
4644const glossaryInstanceName = 'glossary'
4745const argsLinkerPath = [ 'command-reference' , 'ref' , 'cli-reference' ]
48- const sentry = true
4946
5047const postCssPlugins = [
5148 postcssNested ,
@@ -138,7 +135,7 @@ const plugins = [
138135 quotes : false
139136 }
140137 } ,
141- 'gatsby- remark-external-links',
138+ require . resolve ( './src/plugins/ remark-external-links') ,
142139 {
143140 resolve : 'gatsby-remark-autolink-headers' ,
144141 options : {
@@ -157,7 +154,6 @@ const plugins = [
157154 }
158155 } ,
159156 require . resolve ( './src/plugins/resize-image-plugin' ) ,
160- require . resolve ( './src/plugins/external-link-plugin' ) ,
161157 require . resolve ( './src/plugins/null-link-plugin' ) ,
162158 ]
163159 }
@@ -190,10 +186,6 @@ const plugins = [
190186 }
191187 }
192188 } ,
193- sentry && {
194- resolve : '@sentry/gatsby' ,
195- options : sentryConfig
196- } ,
197189 'gatsby-plugin-catch-links' ,
198190 'gatsby-transformer-remark-frontmatter' ,
199191 {
@@ -291,11 +283,6 @@ if (process.env.GATSBY_GTM_ID) {
291283 } )
292284}
293285
294- if ( process . env . ANALYZE ) {
295- plugins . push ( {
296- resolve : 'gatsby-plugin-webpack-bundle-analyser-v2'
297- } )
298- }
299286
300287export default {
301288 plugins : plugins . filter ( Boolean ) ,
0 commit comments