1
- const { redirects} = require ( './redirects.js' ) ;
1
+ import { codecovNextJSWebpackPlugin } from '@codecov/nextjs-webpack-plugin' ;
2
+ import { withSentryConfig } from '@sentry/nextjs' ;
2
3
3
- const { codecovNextJSWebpackPlugin} = require ( '@codecov/nextjs-webpack-plugin' ) ;
4
- const { withSentryConfig} = require ( '@sentry/nextjs' ) ;
4
+ import { redirects } from './redirects' ;
5
5
6
6
const outputFileTracingExcludes = process . env . NEXT_PUBLIC_DEVELOPER_DOCS
7
7
? {
34
34
35
35
/** @type {import('next').NextConfig } */
36
36
const nextConfig = {
37
- pageExtensions : [ 'js' , 'jsx' , 'mdx' , 'ts' , 'tsx' ] ,
37
+ pageExtensions : [ 'js' , 'jsx' , 'mdx' , 'ts' , 'tsx' , 'mdx' ] ,
38
38
trailingSlash : true ,
39
39
serverExternalPackages : [ 'rehype-preset-minify' ] ,
40
40
outputFileTracingExcludes,
@@ -55,10 +55,6 @@ const nextConfig = {
55
55
DEVELOPER_DOCS_ : process . env . NEXT_PUBLIC_DEVELOPER_DOCS ,
56
56
} ,
57
57
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
- ) ,
62
58
sassOptions : {
63
59
silenceDeprecations : [ 'legacy-js-api' ] ,
64
60
} ,
@@ -74,12 +70,6 @@ module.exports = withSentryConfig(nextConfig, {
74
70
// Upload a larger set of source maps for prettier stack traces (increases build time)
75
71
widenClientFileUpload : true ,
76
72
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
-
83
73
// Automatically tree-shake Sentry logger statements to reduce bundle size
84
74
disableLogger : true ,
85
75
@@ -101,11 +91,3 @@ module.exports = withSentryConfig(nextConfig, {
101
91
thirdPartyOriginStackFrames : true ,
102
92
} ,
103
93
} ) ;
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