11const { redirects} = require ( './redirects.js' ) ;
22
33const { codecovNextJSWebpackPlugin} = require ( '@codecov/nextjs-webpack-plugin' ) ;
4- const { withSentryConfig} = require ( '@sentry/nextjs' ) ;
4+ // const {withSentryConfig} = require('@sentry/nextjs');
55
66const outputFileTracingExcludes = process . env . NEXT_PUBLIC_DEVELOPER_DOCS
77 ? {
@@ -13,6 +13,8 @@ const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
1313 './apps/**/*' ,
1414 'develop-docs/**/*' ,
1515 'node_modules/@esbuild/darwin-arm64' ,
16+ '*.png' ,
17+ '*.gif' ,
1618 ] ,
1719 '/platform-redirect' : [ '**/*.gif' , 'public/mdx-images/**/*' , '*.pdf' ] ,
1820 '\\[\\[\\.\\.\\.path\\]\\]' : [
3335}
3436
3537/** @type {import('next').NextConfig } */
36- const nextConfig = {
38+ module . exports = {
3739 pageExtensions : [ 'js' , 'jsx' , 'mdx' , 'ts' , 'tsx' ] ,
3840 trailingSlash : true ,
3941 serverExternalPackages : [ 'rehype-preset-minify' ] ,
@@ -64,43 +66,43 @@ const nextConfig = {
6466 } ,
6567} ;
6668
67- module . exports = withSentryConfig ( nextConfig , {
68- org : 'sentry' ,
69- project : process . env . NEXT_PUBLIC_DEVELOPER_DOCS ? 'develop-docs' : 'docs' ,
69+ // module.exports = withSentryConfig(nextConfig, {
70+ // org: 'sentry',
71+ // project: process.env.NEXT_PUBLIC_DEVELOPER_DOCS ? 'develop-docs' : 'docs',
7072
71- // Suppresses source map uploading logs during build
72- silent : ! process . env . CI ,
73+ // // Suppresses source map uploading logs during build
74+ // silent: !process.env.CI,
7375
74- // Upload a larger set of source maps for prettier stack traces (increases build time)
75- widenClientFileUpload : true ,
76+ // // Upload a larger set of source maps for prettier stack traces (increases build time)
77+ // widenClientFileUpload: true,
7678
77- // Transpiles SDK to be compatible with IE11 (increases bundle size)
78- transpileClientSDK : true ,
79+ // // Transpiles SDK to be compatible with IE11 (increases bundle size)
80+ // transpileClientSDK: true,
7981
80- // Hides source maps from generated client bundles
81- hideSourceMaps : true ,
82+ // // Hides source maps from generated client bundles
83+ // hideSourceMaps: true,
8284
83- // Automatically tree-shake Sentry logger statements to reduce bundle size
84- disableLogger : true ,
85+ // // Automatically tree-shake Sentry logger statements to reduce bundle size
86+ // disableLogger: true,
8587
86- // Enables automatic instrumentation of Vercel Cron Monitors
87- // See the following for more information:
88- // https://docs.sentry.io/product/crons/
89- // https://vercel.com/docs/cron-jobs
90- automaticVercelMonitors : true ,
88+ // // Enables automatic instrumentation of Vercel Cron Monitors
89+ // // See the following for more information:
90+ // // https://docs.sentry.io/product/crons/
91+ // // https://vercel.com/docs/cron-jobs
92+ // automaticVercelMonitors: true,
9193
92- reactComponentAnnotation : {
93- enabled : true ,
94- } ,
94+ // reactComponentAnnotation: {
95+ // enabled: true,
96+ // },
9597
96- unstable_sentryWebpackPluginOptions : {
97- applicationKey : 'sentry-docs' ,
98- } ,
98+ // unstable_sentryWebpackPluginOptions: {
99+ // applicationKey: 'sentry-docs',
100+ // },
99101
100- _experimental : {
101- thirdPartyOriginStackFrames : true ,
102- } ,
103- } ) ;
102+ // _experimental: {
103+ // thirdPartyOriginStackFrames: true,
104+ // },
105+ // });
104106
105107process . on ( 'warning' , warning => {
106108 if ( warning . code === 'DEP0040' ) {
0 commit comments