Skip to content

feat: add is-lambda to replacements - #1050

Merged
43081j merged 2 commits into
e18e:mainfrom
gameroman:is-lambda
Aug 29, 2026
Merged

feat: add is-lambda to replacements#1050
43081j merged 2 commits into
e18e:mainfrom
gameroman:is-lambda

Conversation

@gameroman

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Closes #1026

📚 Description

add is-lambda to replacements

Comment thread manifests/micro-utilities.json Outdated
"id": "snippet::is-aws-lambda",
"type": "simple",
"description": "You can check if the current environment is an AWS Lambda by checking if the `LAMBDA_TASK_ROOT` and `AWS_EXECUTION_ENV` environment variables are set.",
"example": "const isAwsLambda = Boolean(process.env.LAMBDA_TASK_ROOT && process.env.AWS_EXECUTION_ENV);"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't LAMBDA_TASK_ROOT be enough? this might be another case of the source library being overkill

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, looks like LAMBDA_TASK_ROOT is enough 👍

@43081j
43081j merged commit 3b1ef13 into e18e:main Aug 29, 2026
5 checks passed
@gameroman
gameroman deleted the is-lambda branch August 29, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Replacement]: is-lambda

2 participants