From c1df4c1307c40a96f42a65bae142524f52c35d44 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 6 Mar 2026 01:06:50 +0100 Subject: [PATCH] Fix sentry source maps (2) --- web/next.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/next.config.ts b/web/next.config.ts index 69a31ef5..277fc716 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -134,7 +134,10 @@ export default withSentryConfig(nextConfig, { // side errors will fail. tunnelRoute: isAppBuild ? undefined : '/monitoring', - // sourcemaps: {disable: true}, // prevents source maps being served to browser + sourcemaps: { + disable: false, // ✅ enable uploading to Sentry + deleteSourcemapsAfterUpload: true, // ✅ removes them from the server after upload so they're not publicly served + }, webpack: { // Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)