diff --git a/README.md b/README.md index 40c4ab2..c40c83b 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` and `nodejs16.x` AWS Lambda runtimes +This package works with the `nodejs10.x`, `nodejs12.x`, `nodejs14.x`, `nodejs16.x` and `nodejs18.x` AWS Lambda runtimes out of the box. ```javascript diff --git a/src/util/isLambdaRuntimeEnvironment.ts b/src/util/isLambdaRuntimeEnvironment.ts index 9eb6564..aec1eec 100644 --- a/src/util/isLambdaRuntimeEnvironment.ts +++ b/src/util/isLambdaRuntimeEnvironment.ts @@ -4,5 +4,6 @@ export default function isLambdaRuntimeEnvironment(): boolean { 'AWS_Lambda_nodejs12.x', 'AWS_Lambda_nodejs14.x', 'AWS_Lambda_nodejs16.x', + 'AWS_Lambda_nodejs18.x', ].includes(process.env.AWS_EXECUTION_ENV as string); }