Skip to content

Commit 56adae8

Browse files
committed
Add Sentry auth token to fix sourcemaps
1 parent 3a141e7 commit 56adae8

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
@@ -80,7 +80,8 @@
8080
"persistent": true
8181
},
8282
"thirdweb-dashboard#dev": {
83-
"dependsOn": ["^build"]
83+
"dependsOn": ["^build"],
84+
"env": ["SENTRY_AUTH_TOKEN"]
8485
},
8586
"clean": {
8687
"cache": false

0 commit comments

Comments
 (0)