From c24b9c047e04eb57afd781e89900e44321ec5958 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 24 Apr 2026 13:58:24 +0000 Subject: [PATCH] fix(build): Pass Sentry auth token for sourcemaps Sentry's current Next.js sourcemap upload flow expects the auth token\nto be wired through withSentryConfig during production builds.\n\nProvide process.env.SENTRY_AUTH_TOKEN explicitly so build-time\nsourcemap upload can authenticate consistently instead of depending on\nimplicit environment discovery.\n\nFixes WEBVITALS-3P\nCo-Authored-By: Claude Co-authored-by: Sergiy Dybskiy --- next.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/next.config.ts b/next.config.ts index 5cf5beb..2edb930 100644 --- a/next.config.ts +++ b/next.config.ts @@ -24,6 +24,8 @@ export default withWorkflow(withSentryConfig(withBotId(withPlausibleProxy()(next project: "webvitals", + authToken: process.env.SENTRY_AUTH_TOKEN, + // Only print logs for uploading source maps in CI silent: !process.env.CI,