Skip to content

Only send Sentry errors on prod#113

Open
TyHil wants to merge 3 commits into
developfrom
sentry-on-prod
Open

Only send Sentry errors on prod#113
TyHil wants to merge 3 commits into
developfrom
sentry-on-prod

Conversation

@TyHil

@TyHil TyHil commented Jun 10, 2026

Copy link
Copy Markdown
Member

Resolves #110

Turns out this wasn't too hard, we can just put the Sentry DSN in an environment variable and only create the .env.local file in the GitHub action that deploys the extension. That way no one in development ever has Sentry listening to their errors, and production always does.

The only thing to note about this is that if one wants to manually submit the extension to one of the web stores, they must make their own .env.local file with the PLASMO_PUBLIC_SENTRY_DSN variable.

@TyHil TyHil requested a review from NishilJ June 10, 2026 02:10
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.

Only send Sentry errors on prod

1 participant