Skip to content

Conversation

@iker-barriocanal
Copy link
Contributor

Specifying no environment leads events to be marked as production environments. This PR adds the environment from process.env.NODE_ENV by default, without keeping users from setting their own environment.

@iker-barriocanal iker-barriocanal requested a review from a team May 4, 2021 11:17
@iker-barriocanal iker-barriocanal self-assigned this May 4, 2021
@iker-barriocanal iker-barriocanal enabled auto-merge (squash) May 4, 2021 11:19
@iker-barriocanal iker-barriocanal merged commit a4fb316 into master May 4, 2021
@iker-barriocanal iker-barriocanal deleted the nextjs/fix/auto-env branch May 4, 2021 11:28
@github-actions
Copy link
Contributor

github-actions bot commented May 4, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.63 KB (0%)
@sentry/browser - Webpack 21.5 KB (0%)
@sentry/react - Webpack 21.53 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 27.92 KB (+0.01% 🔺)

iker-barriocanal added a commit to getsentry/sentry-docs that referenced this pull request May 5, 2021
This PR adds the corresponding docs for getsentry/sentry-javascript#3495, where the `process.env.NODE_ENV` is added as the `environment` by default.
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.

3 participants