MCPcopy
hub / github.com/simstudioai/sim / getEnv

Function getEnv

apps/sim/lib/core/config/env.ts:10–13  ·  view source on GitHub ↗
(variable: string)

Source from the content-addressed store, hash-verified

8 * which Next 16.2+ rejects outside a request scope.
9 */
10const getEnv = (variable: string): string | undefined => {
11 if (typeof window === 'undefined') return process.env[variable]
12 return window.__ENV?.[variable] ?? process.env[variable]
13}
14
15// biome-ignore format: keep alignment for readability
16export const env = createEnv({

Callers 15

resolveApiCorsPolicyFunction · 0.90
isSubBlockFeatureEnabledFunction · 0.90
isSubBlockHiddenFunction · 0.90
generateRuntimeCSPFunction · 0.90
getBaseUrlFunction · 0.90
getInternalApiBaseUrlFunction · 0.90
getBaseDomainFunction · 0.90
getSocketUrlFunction · 0.90
env-flags.tsFile · 0.90
getStorageLimitsFunction · 0.90
pi.tsFile · 0.90
AuthModalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected