File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ - [ utils] fix: Preserve function prototype when filling
6+ - [ node] feat: Read from ` SENTRY_RELEASE ` and ` SENTRY_ENVIRONMENT ` if present
7+
58## 4.6.1
69
710- [ utils] fix: Patch ` tslib_1__default ` regression and add additional tests around it
Original file line number Diff line number Diff line change @@ -74,6 +74,14 @@ export function init(options: NodeOptions = {}): void {
7474 options . dsn = process . env . SENTRY_DSN ;
7575 }
7676
77+ if ( options . release === undefined && process . env . SENTRY_RELEASE ) {
78+ options . release = process . env . SENTRY_RELEASE ;
79+ }
80+
81+ if ( options . environment === undefined && process . env . SENTRY_ENVIRONMENT ) {
82+ options . environment = process . env . SENTRY_ENVIRONMENT ;
83+ }
84+
7785 if ( domain . active ) {
7886 setHubOnCarrier ( getMainCarrier ( ) , getCurrentHub ( ) ) ;
7987 }
You can’t perform that action at this time.
0 commit comments