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

Function createBasicLambda

packages/build-utils/test/unit.finalize-lambda.test.ts:17–25  ·  view source on GitHub ↗
(files?: Record<string, FileBlob>)

Source from the content-addressed store, hash-verified

15};
16
17function createBasicLambda(files?: Record<string, FileBlob>) {
18 return new Lambda({
19 files: files ?? {
20 'index.js': new FileBlob({ data: 'exports.handler = () => {};' }),
21 },
22 handler: 'index.handler',
23 runtime: 'nodejs20.x',
24 });
25}
26
27function createNodejsLambda(files?: Record<string, FileBlob>) {
28 return new NodejsLambda({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected