Skip to content

fix: pass Sentry auth token for sourcemaps#36

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

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

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented Apr 24, 2026

Description

Fixes a regression in WEBVITALS-3P.

  • Root cause: The Next.js Sentry plugin config set org and project but never passed authToken, while the current Sentry Next.js sourcemap upload flow expects SENTRY_AUTH_TOKEN to be wired through withSentryConfig(...) for production builds.
  • Regression vector: This appears to be configuration drift rather than a single recent code revert. The repo has carried a manual Sentry setup without explicit authToken wiring since the original setup, and the issue resurfaced on recent preview releases as a sourcemap_configuration / js_no_source warning.
  • Fix: Pass process.env.SENTRY_AUTH_TOKEN explicitly in next.config.ts so build-time sourcemap uploads can authenticate consistently.

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactoring

Sentry Context

  • Issue: https://sentry.sentry.io/issues/7422483938/
  • Regressed in release: unknown in issue tags (release is null on the warning events)
  • Previously resolved by: unknown via MCP; issue activity history was not exposed in the available automation tools

Verification

  • pnpm check-types
  • pnpm lint ⚠️ fails on pre-existing repository-wide Biome issues and a broken symlink under .claude/skills; no new lint finding was introduced in next.config.ts
  • Manual browser verification / screenshot evidence could not be completed in this automation environment because there was no running dev server to reuse and sourcemap upload behavior depends on a production-style build/deploy

Checklist

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

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 <noreply@anthropic.com>

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

vercel Bot commented Apr 24, 2026

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

Project Deployment Actions Updated (UTC)
webvitals-com Ready Ready Preview, Comment Apr 24, 2026 2:03pm
webvitals.com Ready Ready Preview, Comment Apr 24, 2026 2:03pm

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