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

Function getEnv

packages/db/scripts/migrate-block-api-keys-to-byok.ts:102–107  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

100
101// ---------- Env ----------
102function getEnv(name: string): string | undefined {
103 if (typeof process !== 'undefined' && process.env && name in process.env) {
104 return process.env[name]
105 }
106 return undefined
107}
108
109const CONNECTION_STRING = getEnv('POSTGRES_URL') ?? getEnv('DATABASE_URL')
110if (!CONNECTION_STRING) {

Calls

no outgoing calls

Tested by

no test coverage detected