UNPKG

playwright-aws-lambda

Version:

Support for running Microsoft's Playwrite on AWS Lambda and Google Cloud functions

10 lines (9 loc) 350 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function isHeadlessModeEnabled() { if (process.env.IS_LOCAL !== undefined) { return false; } return ['AWS_LAMBDA_FUNCTION_NAME', 'FUNCTION_NAME', 'FUNCTION_TARGET'].some(key => process.env[key] !== undefined); } exports.default = isHeadlessModeEnabled;