Replace NODE_ENV in places where its safe

This commit is contained in:
Eric Bailey
2025-07-22 18:46:09 -05:00
parent fce7aa07e4
commit 4d4b903ccd
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -14,9 +14,10 @@ import {
} from '#/logger/types'
import {enabledLogLevels} from '#/logger/util'
import {isNative} from '#/platform/detection'
import {ENV} from '#/env'
const TRANSPORTS: Transport[] = (function configureTransports() {
switch (process.env.NODE_ENV) {
switch (ENV) {
case 'production': {
return [sentryTransport, isNative && bitdriftTransport].filter(
Boolean,