MCPcopy Create free account
hub / github.com/vercel/vercel / getProtectedUvEnv

Function getProtectedUvEnv

packages/python/src/uv.ts:452–464  ·  view source on GitHub ↗
(
  baseEnv: NodeJS.ProcessEnv = process.env,
  uvCacheDir?: string
)

Source from the content-addressed store, hash-verified

450}
451
452export function getProtectedUvEnv(
453 baseEnv: NodeJS.ProcessEnv = process.env,
454 uvCacheDir?: string
455): NodeJS.ProcessEnv {
456 const env: NodeJS.ProcessEnv = {
457 ...baseEnv,
458 UV_PYTHON_DOWNLOADS: UV_PYTHON_DOWNLOADS_MODE,
459 };
460 if (uvCacheDir) {
461 env.UV_CACHE_DIR = uvCacheDir;
462 }
463 return env;
464}
465
466/**
467 * Directory name where the uv binary will be bundled in the Lambda package.

Callers 8

unit.test.tsFile · 0.90
pipInstallFunction · 0.90
runSyncFunction · 0.90
createVenvEnvFunction · 0.90
ensureVenvFunction · 0.90
cachePruneMethod · 0.85
getVenvEnvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected