11const createMDX = require ( '@next/mdx' ) ;
22const remarkPrism = require ( 'remark-prism' ) ;
3- const { codecovWebpackPlugin } = require ( '@codecov/webpack-plugin' ) ;
3+ const { codecovWebpackPlugin} = require ( '@codecov/webpack-plugin' ) ;
4+ const { withSentryConfig} = require ( '@sentry/nextjs' ) ;
45
56/** @type {import('next').NextConfig } */
67const nextConfig = {
@@ -22,7 +23,7 @@ const nextConfig = {
2223 ) ;
2324
2425 return config ;
25- }
26+ } ,
2627} ;
2728
2829const withMDX = createMDX ( {
@@ -33,41 +34,28 @@ const withMDX = createMDX({
3334
3435module . exports = withMDX ( nextConfig ) ;
3536
36- // Injected content via Sentry wizard below
37-
38- const { withSentryConfig } = require ( '@sentry/nextjs' ) ;
37+ module . exports = withSentryConfig ( module . exports , {
38+ org : 'sentry' ,
39+ project : 'docs' ,
3940
40- module . exports = withSentryConfig (
41- module . exports ,
42- {
43- // For all available options, see:
44- // https://github.com/getsentry/sentry-webpack-plugin#options
41+ // Suppresses source map uploading logs during build
42+ silent : ! process . env . CI ,
4543
46- // Suppresses source map uploading logs during build
47- silent : true ,
48- org : 'sentry' ,
49- project : 'docs' ,
50- } ,
51- {
52- // For all available options, see:
53- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
44+ // Upload a larger set of source maps for prettier stack traces (increases build time)
45+ widenClientFileUpload : true ,
5446
55- // Upload a larger set of source maps for prettier stack traces (increases build time )
56- widenClientFileUpload : true ,
47+ // Transpiles SDK to be compatible with IE11 (increases bundle size )
48+ transpileClientSDK : true ,
5749
58- // Transpiles SDK to be compatible with IE11 (increases bundle size)
59- transpileClientSDK : true ,
50+ // Hides source maps from generated client bundles
51+ hideSourceMaps : true ,
6052
61- // Hides source maps from generated client bundles
62- hideSourceMaps : true ,
53+ // Automatically tree-shake Sentry logger statements to reduce bundle size
54+ disableLogger : true ,
6355
64- // Automatically tree-shake Sentry logger statements to reduce bundle size
65- disableLogger : true ,
66-
67- // Enables automatic instrumentation of Vercel Cron Monitors.
68- // See the following for more information:
69- // https://docs.sentry.io/product/crons/
70- // https://vercel.com/docs/cron-jobs
71- automaticVercelMonitors : true ,
72- }
73- ) ;
56+ // Enables automatic instrumentation of Vercel Cron Monitors.
57+ // See the following for more information:
58+ // https://docs.sentry.io/product/crons/
59+ // https://vercel.com/docs/cron-jobs
60+ automaticVercelMonitors : true ,
61+ } ) ;
0 commit comments