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

Function getEnv

packages/db/scripts/migrate-deployment-versions.ts:13–18  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

11
12// ---------- Minimal env helpers ----------
13function getEnv(name: string): string | undefined {
14 if (typeof process !== 'undefined' && process.env && name in process.env) {
15 return process.env[name]
16 }
17 return undefined
18}
19
20const CONNECTION_STRING = getEnv('POSTGRES_URL') ?? getEnv('DATABASE_URL')
21if (!CONNECTION_STRING) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected