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

Function archToLambdaArch

packages/python/src/index.ts:385–387  ·  view source on GitHub ↗

Map an architecture name to a Lambda architecture value.

(arch: string)

Source from the content-addressed store, hash-verified

383
384/** Map an architecture name to a Lambda architecture value. */
385function archToLambdaArch(arch: string): 'x86_64' | 'arm64' {
386 return validateBuildArch(arch) === 'aarch64' ? 'arm64' : 'x86_64';
387}
388
389/** Resolve the target platform for wheel resolution and Lambda architecture. */
390function getTargetPlatform(isDev: boolean): TargetPlatform {

Callers 1

getTargetPlatformFunction · 0.85

Calls 1

validateBuildArchFunction · 0.90

Tested by

no test coverage detected