From 8a6556a14fa0a76bc5a0b469b8a221743727a074 Mon Sep 17 00:00:00 2001 From: devthejo Date: Tue, 28 Jan 2025 10:24:47 +0100 Subject: [PATCH] fix: sentry sourcemaps --- packages/app/next.config.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/app/next.config.js b/packages/app/next.config.js index aa7a7d3d8..5296eb65c 100644 --- a/packages/app/next.config.js +++ b/packages/app/next.config.js @@ -83,8 +83,14 @@ module.exports = withSentryConfig( // For all available options, see: // https://github.com/getsentry/sentry-webpack-plugin#options - // Suppresses source map uploading logs during build - // silent: true, + // Enable debug IDs + injectDebugIds: true, + + // Enable source map uploading + sourcemaps: { + assets: "./**/*.{js,map}", + ignore: ["node_modules/**/*"], + }, org: process.env.SENTRY_ORG, project: process.env.SENTRY_PROJECT, @@ -94,6 +100,12 @@ module.exports = withSentryConfig( setCommits: { auto: true, }, + + // Enable debug mode for more verbose output + debug: true, + + // Suppresses source map uploading logs during build + // silent: true, }, { // For all available options, see: