File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,11 @@ export const GITHUB_REPOSITORY = `https://github.com/${GH_REPO_OWNER}/${GH_REPO_
12
12
13
13
const IS_CI = Boolean ( process . env . CI ?? false ) ;
14
14
15
- export const SB_TELEMETRY_DISABLED = IS_CI || ( Boolean ( process . env . SB_TELEMETRY_DISABLED ) ?? false ) ;
16
- export const SB_TELEMETRY_DEBUG = IS_CI || ( Boolean ( process . env . SB_TELEMETRY_DEBUG ) ?? false ) ;
15
+ const envTrueValues = new Set ( [ '1' , 'true' ] ) ;
16
+
17
+ export const SB_TELEMETRY_DISABLED =
18
+ IS_CI || envTrueValues . has ( ( process . env . SB_TELEMETRY_DISABLED ?? 'false' ) . toLowerCase ( ) ) ;
19
+ export const SB_TELEMETRY_DEBUG = IS_CI || envTrueValues . has ( ( process . env . SB_TELEMETRY_DEBUG ?? 'false' ) . toLowerCase ( ) ) ;
17
20
const [ telemetryUrl , telemetryKey ] = telemetryConfig ;
18
21
export const SB_TELEMETRY_URL = process . env . SB_TELEMETRY_URL ?? telemetryUrl ;
19
22
export const SB_TELEMETRY_KEY = process . env . SB_TELEMETRY_KEY ?? telemetryKey ;
You can’t perform that action at this time.
0 commit comments