Skip to content

Commit 2388c6f

Browse files
committed
enable useRunAfterProductionCompileHook
1 parent 19f2aea commit 2388c6f

File tree

3 files changed

+340
-324
lines changed

3 files changed

+340
-324
lines changed

next.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {codecovNextJSWebpackPlugin} from '@codecov/nextjs-webpack-plugin';
22
import {withSentryConfig} from '@sentry/nextjs';
33

4-
import {redirects} from './redirects.js';
54
import {REMOTE_IMAGE_PATTERNS} from './src/config/images';
5+
import {redirects} from './redirects.js';
66

77
const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
88
? {
@@ -114,6 +114,9 @@ module.exports = withSentryConfig(nextConfig, {
114114
applicationKey: 'sentry-docs',
115115
},
116116

117+
// Enables sourcemap uploads after the build is complete
118+
useRunAfterProductionCompileHook: true,
119+
117120
_experimental: {
118121
thirdPartyOriginStackFrames: true,
119122
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@radix-ui/react-tooltip": "^1.1.4",
5656
"@radix-ui/themes": "^3.1.3",
5757
"@sentry-internal/global-search": "^1.3.0",
58-
"@sentry/nextjs": "^10.0.0",
58+
"@sentry/nextjs": "^10.14.0",
5959
"@types/mdx": "^2.0.9",
6060
"algoliasearch": "^4.23.3",
6161
"dompurify": "3.2.4",
@@ -150,4 +150,4 @@
150150
"node": "22.16.0",
151151
"yarn": "1.22.22"
152152
}
153-
}
153+
}

0 commit comments

Comments
 (0)