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

Function createLambda

packages/build-utils/src/lambda.ts:483–490  ·  view source on GitHub ↗
(opts: LambdaOptions)

Source from the content-addressed store, hash-verified

481 * @deprecated Use `new Lambda()` instead.
482 */
483export async function createLambda(opts: LambdaOptions): Promise<Lambda> {
484 const lambda = new Lambda(opts);
485
486 // backwards compat
487 lambda.zipBuffer = await lambda.createZip();
488
489 return lambda;
490}
491
492export async function createZip(files: Files): Promise<Buffer> {
493 const names = Object.keys(files).sort();

Callers

nothing calls this directly

Calls 1

createZipMethod · 0.95

Tested by

no test coverage detected