From 3b16dbe08d4297ad081bd64ea4747c5b4ac73765 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sat, 27 Jun 2026 08:30:42 +0200 Subject: [PATCH] perf: completely remove withSentryConfig from next.config.mjs to drop 170KB unused JS and legacy Array.from polyfills from the client bundle --- next.config.mjs | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 28119a6e9..0116d4c2d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -558,19 +558,8 @@ import createNextIntlPlugin from 'next-intl/plugin'; const withNextIntl = createNextIntlPlugin(); resolvedConfig = withNextIntl(resolvedConfig); -resolvedConfig = withSentryConfig( - resolvedConfig, - { - silent: !process.env.CI, - treeshake: { removeDebugLogging: true }, - }, - { - disableClientWebpackPlugin: true, - autoInstrumentServerFunctions: false, - autoInstrumentMiddleware: false, - autoInstrumentAppDirectory: false, - } -); +// Removed withSentryConfig completely to eliminate the 170KB client-side bloat and Array.from legacy polyfill. +// Server-side instrumentation is still handled manually in instrumentation.ts. // Manually merge baseNextConfig properties const finalConfig = {