Skip to content

Commit be79c9b

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

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"dependsOn": ["^build"]
1616
},
1717
"thirdweb-dashboard#build": {
18+
"inputs": ["$TURBO_DEFAULT$", ".env"],
1819
"outputs": [".next/**", "!.next/cache/**"],
1920
"dependsOn": ["^build"]
2021
},

0 commit comments

Comments
 (0)