Skip to content

fix(ci): declare SENTRY_AUTH_TOKEN as passthrough env for build - #6

Merged
sabahattink merged 1 commit into
mainfrom
fix/turbo-sentry-env-warning
Aug 8, 2026
Merged

fix(ci): declare SENTRY_AUTH_TOKEN as passthrough env for build#6
sabahattink merged 1 commit into
mainfrom
fix/turbo-sentry-env-warning

Conversation

@sabahattink

Copy link
Copy Markdown
Owner

Summary

  • Vercel builds were printing a warning: SENTRY_AUTH_TOKEN is set on the Vercel project but not declared in turbo.json.
  • Added it to the build task's passThroughEnv (not env): the token only drives the Sentry build plugin's source-map upload as a side effect and never changes the build's actual output, so it shouldn't be hashed into the cache key. Using env instead would invalidate the build cache every time the token rotates, for no reason.
  • Scoped to the build task only — no other tasks/dependencies/outputs touched, caching is untouched (confirmed below).

Test plan

  • pnpm build — 8/8 tasks pass, no warnings
  • pnpm build run a second time — 8/8 cached (FULL TURBO), confirming caching still works
  • node scripts/ci-verify.mjs — all steps passed
  • npx prettier --check turbo.json — clean
  • Vercel-side confirmation that the warning is gone (only observable on the next real Vercel deployment, not reproducible locally)

🤖 Generated with Claude Code

Vercel warns when a project env var isn't declared in turbo.json. The
token only affects the Sentry build plugin's source-map upload as a
side effect -- it never changes build output -- so it's added via
passThroughEnv (available to the build task, excluded from the cache
hash) rather than env, which would invalidate the build cache on every
token rotation for no reason.
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
recall Ready Ready Preview Aug 8, 2026 9:10am

@sabahattink
sabahattink merged commit a23ccc3 into main Aug 8, 2026
5 checks passed
@sabahattink
sabahattink deleted the fix/turbo-sentry-env-warning branch August 8, 2026 09:13
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