about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/env/common.ts10
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)