We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfafa98 + cbcc35e commit 6875dc9Copy full SHA for 6875dc9
modules/statics/src/coins.ts
@@ -4257,6 +4257,11 @@ export function createTokenMapUsingTrimmedConfigDetails(
4257
}
4258
4259
function isRunningInStaging(): boolean {
4260
+ if (typeof process === 'undefined' || !process.env) {
4261
+ // If process or process.env doesn't exist, we're likely in a browser.
4262
+ // Return false as we can't determine the environment this way.
4263
+ return false;
4264
+ }
4265
// Check explicit staging environment variables
4266
const stagingEnvVars = [
4267
process.env.BITGO_ENV === 'staging' || process.env.BITGO_ENV === 'staging_internal',
0 commit comments