Skip to content

Commit 2031834

Browse files
authored
chore(platform): Move next config file + bump sentry (#13932)
1 parent 263ca6d commit 2031834

File tree

4 files changed

+113
-270
lines changed

4 files changed

+113
-270
lines changed

apps/changelog/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@radix-ui/react-icons": "^1.3.2",
2626
"@radix-ui/react-toolbar": "^1.1.0",
2727
"@radix-ui/themes": "^3.1.3",
28-
"@sentry/nextjs": "9.10.1",
28+
"@sentry/nextjs": "9.27.0",
2929
"@spotlightjs/spotlight": "^2.1.1",
3030
"next": "15.2.3",
3131
"next-auth": "^4.24.5",
@@ -68,4 +68,4 @@
6868
"@types/react": "npm:[email protected]",
6969
"@types/react-dom": "npm:[email protected]"
7070
}
71-
}
71+
}

next.config.js renamed to next.config.ts

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
77
? {
@@ -34,7 +34,7 @@ if (
3434

3535
/** @type {import('next').NextConfig} */
3636
const 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-
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@radix-ui/react-tooltip": "^1.1.4",
5454
"@radix-ui/themes": "^3.1.3",
5555
"@sentry-internal/global-search": "^1.3.0",
56-
"@sentry/nextjs": "9.11.0",
56+
"@sentry/nextjs": "9.27.0",
5757
"@types/mdx": "^2.0.9",
5858
"algoliasearch": "^4.23.3",
5959
"dompurify": "3.2.4",
@@ -137,4 +137,4 @@
137137
"node": "20.11.0",
138138
"yarn": "1.22.22"
139139
}
140-
}
140+
}

0 commit comments

Comments
 (0)