[python] Use new Lambda()

`createLambda()` is deprecated.
This commit is contained in:
Nathan Rajlich
2022-03-11 21:03:42 -08:00
parent cf3e4bd726
commit 7eba282af5

View File

@@ -10,10 +10,10 @@ import {
getWriteableDirectory,
download,
glob,
createLambda,
shouldServe,
debug,
NowBuildError,
Lambda,
} from '@vercel/build-utils';
import { installRequirement, installRequirementsFile } from './install';
@@ -216,11 +216,10 @@ export const build = async ({
: 'node_modules/**',
};
const lambda = await createLambda({
const lambda = new Lambda({
files: await glob('**', globOptions),
handler: `${handlerPyFilename}.vc_handler`,
runtime,
environment: {},
});
return { output: lambda };