Skip to content

fix: pass Sentry auth token for sourcemaps#37

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/sentry-issue-regression-0089
Draft

fix: pass Sentry auth token for sourcemaps#37
cursor[bot] wants to merge 1 commit intomainfrom
cursor/sentry-issue-regression-0089

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 6, 2026

Description

Fixes a regression in WEBVITALS-3P.

  • Root cause: next.config.ts configured Sentry org and project but did not pass authToken, so the Next.js Sentry sourcemap upload step had to rely on implicit environment discovery instead of explicit build auth.
  • Regression vector: The earlier fix already exists in PR #36 / commit c24b9c0, but it never merged into main, so releases built from the current base still ship without the token wiring.
  • Fix: Pass process.env.SENTRY_AUTH_TOKEN into withSentryConfig(...) in next.config.ts.

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactoring

Sentry Context

  • Issue: https://sentry.sentry.io/issues/7422483938/
  • Regressed in release: unknown (release and environment tags are (null) on the warning events)
  • Previously resolved by: earlier unmerged PR #36 / commit c24b9c0; issue activity history was not exposed by the available MCP tools

Verification

  • Local manual browser verification is not meaningful for this warning because it is emitted by build/deploy sourcemap configuration rather than a route-level interaction.
  • This automation container does not have node or pnpm on PATH, so pnpm check-types and pnpm lint could not be run here.
  • The identical earlier fix in PR fix: pass Sentry auth token for sourcemaps #36 already passed GitHub Analyze and Vercel preview checks.

Checklist

  • Tested locally
  • Types pass (pnpm check-types)
  • Linting passes (pnpm lint)
Open in Web View Automation 

Sentry's Next.js sourcemap upload flow expects the auth token to be\nwired through withSentryConfig during production builds.\n\nProvide process.env.SENTRY_AUTH_TOKEN explicitly so build-time\nsourcemap upload can authenticate consistently instead of relying on\nimplicit environment discovery.\n\nFixes WEBVITALS-3P\nCo-Authored-By: Claude <noreply@anthropic.com>

Co-authored-by: Sergiy Dybskiy <s@serg.tech>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webvitals-com Ready Ready Preview, Comment May 6, 2026 7:41am
webvitals.com Ready Ready Preview, Comment May 6, 2026 7:41am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant