1- const { redirects} = require ( './redirects.js' ) ;
1+ import { codecovNextJSWebpackPlugin } from '@codecov/nextjs-webpack-plugin' ;
2+ import { withSentryConfig } from '@sentry/nextjs' ;
23
3- const { codecovNextJSWebpackPlugin} = require ( '@codecov/nextjs-webpack-plugin' ) ;
4- const { withSentryConfig} = require ( '@sentry/nextjs' ) ;
4+ import { redirects } from './redirects' ;
55
66const outputFileTracingExcludes = process . env . NEXT_PUBLIC_DEVELOPER_DOCS
77 ? {
3434
3535/** @type {import('next').NextConfig } */
3636const nextConfig = {
37- pageExtensions : [ 'js' , 'jsx' , 'mdx' , 'ts' , 'tsx' ] ,
37+ pageExtensions : [ 'js' , 'jsx' , 'mdx' , 'ts' , 'tsx' , 'mdx' ] ,
3838 trailingSlash : true ,
3939 serverExternalPackages : [ 'rehype-preset-minify' ] ,
4040 outputFileTracingExcludes,
@@ -55,10 +55,6 @@ const nextConfig = {
5555 DEVELOPER_DOCS_ : process . env . NEXT_PUBLIC_DEVELOPER_DOCS ,
5656 } ,
5757 redirects,
58- // https://github.com/vercel/next.js/discussions/48324#discussioncomment-10748690
59- cacheHandler : require . resolve (
60- 'next/dist/server/lib/incremental-cache/file-system-cache.js'
61- ) ,
6258 sassOptions : {
6359 silenceDeprecations : [ 'legacy-js-api' ] ,
6460 } ,
@@ -74,12 +70,6 @@ module.exports = withSentryConfig(nextConfig, {
7470 // Upload a larger set of source maps for prettier stack traces (increases build time)
7571 widenClientFileUpload : true ,
7672
77- // Transpiles SDK to be compatible with IE11 (increases bundle size)
78- transpileClientSDK : true ,
79-
80- // Hides source maps from generated client bundles
81- hideSourceMaps : true ,
82-
8373 // Automatically tree-shake Sentry logger statements to reduce bundle size
8474 disableLogger : true ,
8575
@@ -101,11 +91,3 @@ module.exports = withSentryConfig(nextConfig, {
10191 thirdPartyOriginStackFrames : true ,
10292 } ,
10393} ) ;
104-
105- process . on ( 'warning' , warning => {
106- if ( warning . code === 'DEP0040' ) {
107- // Ignore punnycode deprecation warning, we don't control its usage
108- return ;
109- }
110- console . warn ( warning ) ; // Log other warnings
111- } ) ;
0 commit comments