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

Function setApiKeyEnvironmentVariable

packages/cli/src/utils/env.ts:29–31  ·  view source on GitHub ↗
(dir: string, fileName: string, apiKey: string)

Source from the content-addressed store, hash-verified

27}
28
29export async function setApiKeyEnvironmentVariable(dir: string, fileName: string, apiKey: string) {
30 await setEnvironmentVariable(dir, fileName, "TRIGGER_API_KEY", apiKey, true, renderApiKey);
31}
32
33export async function setApiUrlEnvironmentVariable(dir: string, fileName: string, apiUrl: string) {
34 await setEnvironmentVariable(dir, fileName, "TRIGGER_API_URL", apiUrl, true);

Callers 1

initCommandFunction · 0.90

Calls 1

setEnvironmentVariableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…