includes not contains...

This commit is contained in:
Sparticuz 2023-11-16 12:46:16 -05:00
parent 6fe1820833
commit c683d75545
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export const isRunningInAwsLambda = () => {
export const isRunningInAwsLambdaNode20 = () => { export const isRunningInAwsLambdaNode20 = () => {
if ( if (
process.env["AWS_EXECUTION_ENV"] && process.env["AWS_EXECUTION_ENV"] &&
process.env["AWS_EXECUTION_ENV"].contains("nodejs20.x") process.env["AWS_EXECUTION_ENV"].includes("nodejs20.x")
) { ) {
return true; return true;
} }