mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 21:07:48 +00:00
[python] Use new Lambda()
`createLambda()` is deprecated.
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user