diff options
author | Eric Bailey <git@esb.lol> | 2025-08-08 09:57:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-08 09:57:17 -0500 |
commit | 23a797cfab8182e8f2ebbb6e113177a533afcd3c (patch) | |
tree | 329711fe59aeabd00e3164a1d419ea9502a0b6de /src/env/common.ts | |
parent | 22a8b63dcf45e9c0f6cec370d978a965225c1246 (diff) | |
download | voidsky-23a797cfab8182e8f2ebbb6e113177a533afcd3c.tar.zst |
Captcha fixes (#8803)
* Add env to scripts * Update var name
Diffstat (limited to 'src/env/common.ts')
-rw-r--r-- | src/env/common.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/env/common.ts b/src/env/common.ts index dd2df7b17..fbf477726 100644 --- a/src/env/common.ts +++ b/src/env/common.ts @@ -80,8 +80,10 @@ export const BITDRIFT_API_KEY: string | undefined = process.env.EXPO_PUBLIC_BITDRIFT_API_KEY /** - * GCP project ID which is required for device attestation + * GCP project ID which is required for native device attestation. On web, this + * should be unset and evaluate to 0. */ -export const GCP_PROJECT_ID: number = Number( - process.env.EXPO_PUBLIC_GCP_PROJECT_ID, -) +export const GCP_PROJECT_ID: number = + process.env.EXPO_PUBLIC_GCP_PROJECT_ID === undefined + ? 0 + : Number(process.env.EXPO_PUBLIC_GCP_PROJECT_ID) |