Skip to content

[comp] Production Deploy#3138

Merged
tofikwest merged 3 commits into
releasefrom
main
Jun 15, 2026
Merged

[comp] Production Deploy#3138
tofikwest merged 3 commits into
releasefrom
main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Enable Sentry only in production for both app and portal (server, edge, and client) to stop preview/dev deployments from sending events. This cuts noise and avoids quota burn without risking runtime errors.

  • Bug Fixes
    • Gate Sentry with enabled: server/edge use VERCEL_ENV === 'production', client uses NEXT_PUBLIC_VERCEL_ENV === 'production'.
    • Missing env vars default to disabled (SDK is a no-op).

Written for commit 6b0878c. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 3 commits June 15, 2026 01:21
Sentry was initialized unconditionally in app and portal across the server,
edge, and client runtimes. The DSN has a hardcoded fallback and there was no
environment gating, so every Vercel deployment — production AND every
preview/branch deploy — reported into the same Sentry project, creating noise.

Gate ingestion on the Vercel environment via the `enabled` option:
- server/edge configs: VERCEL_ENV === 'production'
- client configs: NEXT_PUBLIC_VERCEL_ENV === 'production' (inlined at build time)

`enabled: false` makes the SDK a silent no-op (it never throws); a missing var
resolves to false, so the worst case is Sentry being off in a non-prod env —
never a runtime error or a broken build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix(sentry): only report errors from the production environment
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
app (staging) Ready Ready Preview, Comment Jun 15, 2026 2:15am
comp-framework-editor (staging) Ready Ready Preview, Comment Jun 15, 2026 2:15am
portal (staging) Ready Ready Preview, Comment Jun 15, 2026 2:15am

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 6 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@tofikwest tofikwest merged commit aa87a80 into release Jun 15, 2026
14 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.82.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants