MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / setEnvDefault

Function setEnvDefault

scripts/web-env/shared.ts:452–463  ·  view source on GitHub ↗
(file: string, name: string, value: string)

Source from the content-addressed store, hash-verified

450}
451
452export function customEnvironmentId(context: VercelContext, slug: string): string | undefined {
453 const response = vercelApi(
454 context,
455 `/v9/projects/${encodeURIComponent(context.project)}/custom-environments`,
456 `List ${context.project} custom environments`
457 );
458 const match = records(response.environments).find(
459 environment => stringValue(environment, 'slug') === slug
460 );
461 return match ? stringValue(match, 'id') : undefined;
462}
463
464// Vercel decrypts encrypted values one record at a time (the list endpoint does
465// not), and never returns sensitive values.
466export async function decryptedEnvValues(

Callers 1

mainFunction · 0.85

Calls 2

pushMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected