Add env to scripts

This commit is contained in:
Eric Bailey
2025-08-08 09:38:16 -05:00
parent 22a8b63dcf
commit e7506277f9
5 changed files with 12 additions and 4 deletions
+6 -4
View File
@@ -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)