Skip to content

Commit 2ad062c

Browse files
committed
Add Sentry auth token to fix sourcemaps
1 parent 3a141e7 commit 2ad062c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

apps/dashboard/next.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,12 @@ module.exports = withBundleAnalyzer(
189189
// For all available options, see:
190190
// https://github.com/getsentry/sentry-webpack-plugin#options
191191

192-
// Suppresses source map uploading logs during build
193-
silent: true,
194192
org: "thirdweb-dev",
195193
project: "dashboard",
194+
// An auth token is required for uploading source maps.
195+
authToken: process.env.SENTRY_AUTH_TOKEN,
196+
// Suppresses source map uploading logs during build
197+
silent: false,
196198
},
197199
{
198200
// For all available options, see:
@@ -208,7 +210,7 @@ module.exports = withBundleAnalyzer(
208210
tunnelRoute: "/err",
209211

210212
// Hides source maps from generated client bundles
211-
hideSourceMaps: true,
213+
hideSourceMaps: false,
212214

213215
// Automatically tree-shake Sentry logger statements to reduce bundle size
214216
disableLogger: true,

turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"tasks": {
55
"build": {
66
"outputs": ["dist/**"],
7-
"dependsOn": ["^build"]
7+
"dependsOn": ["^build"],
8+
"env": ["SENTRY_AUTH_TOKEN"]
89
},
910
"bench": {
1011
"cache": false,

0 commit comments

Comments
 (0)