Resolve the target platform for wheel resolution and Lambda architecture.
(isDev: boolean)
| 388 | |
| 389 | /** Resolve the target platform for wheel resolution and Lambda architecture. */ |
| 390 | function getTargetPlatform(isDev: boolean): TargetPlatform { |
| 391 | const arch = process.env.VERCEL_BUILD_ARCH; |
| 392 | if (arch) { |
| 393 | return { |
| 394 | uvPlatform: archToUvPlatform(arch), |
| 395 | architecture: archToLambdaArch(arch), |
| 396 | }; |
| 397 | } |
| 398 | |
| 399 | if (isDev || process.env.VERCEL_BUILD_IMAGE) { |
| 400 | return { uvPlatform: undefined, architecture: undefined }; |
| 401 | } |
| 402 | |
| 403 | return { uvPlatform: UV_LINUX_TARGET, architecture: 'x86_64' }; |
| 404 | } |
| 405 | |
| 406 | async function getPythonLambdaOptions({ |
| 407 | config, |
no test coverage detected