inxilpro / node-app-root-path

Determine the root path to your project
MIT License
605 stars 29 forks source link

feat: Support AWS Lambda execution environment #24

Closed jrtipton closed 6 years ago

jrtipton commented 6 years ago

AWS Lambda environment specifies LAMBDA_TASK_ROOT, which should be honored. Also check for the presence of AWS_EXECUTION_ENV for sanity.

AWS documentation: https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html