diff --git a/README.md b/README.md index c40c83b..488f1b4 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ npm install playwright-core playwright-aws-lambda --save ## Usage -This package works with the `nodejs10.x`, `nodejs12.x`, `nodejs14.x`, `nodejs16.x` and `nodejs18.x` AWS Lambda runtimes +This package works with the `nodejs10.x`, `nodejs12.x`, `nodejs14.x`, `nodejs16.x`, `nodejs18.x` and `nodejs20.x` AWS Lambda runtimes out of the box. ```javascript diff --git a/src/util/isLambdaRuntimeEnvironment.ts b/src/util/isLambdaRuntimeEnvironment.ts index aec1eec..fb5d15b 100644 --- a/src/util/isLambdaRuntimeEnvironment.ts +++ b/src/util/isLambdaRuntimeEnvironment.ts @@ -5,5 +5,6 @@ export default function isLambdaRuntimeEnvironment(): boolean { 'AWS_Lambda_nodejs14.x', 'AWS_Lambda_nodejs16.x', 'AWS_Lambda_nodejs18.x', + 'AWS_Lambda_nodejs20.x', ].includes(process.env.AWS_EXECUTION_ENV as string); }