MCPcopy
hub / github.com/triggerdotdev/trigger.dev / getEnvVar

Function getEnvVar

packages/core/src/v3/utils/getEnv.ts:1–6  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1export function getEnvVar(name: string): string | undefined {
2 // This could run in a non-Node.js environment (Bun, Deno, CF Worker, etc.), so don't just assume process.env is a thing
3 if (typeof process !== "undefined" && typeof process.env === "object" && process.env !== null) {
4 return process.env[name];
5 }
6}

Callers 5

baseURLMethod · 0.90
accessTokenMethod · 0.90
constructorMethod · 0.90
worker-facade.tsFile · 0.85
worker-facade.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…