Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set environment variables before requiring module #137

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

dantman
Copy link
Contributor

@dantman dantman commented Aug 15, 2016

In Lambda, the process.env variables are set at the very beginning before anything is run.

run needs to set process.env before it requires the handler, otherwise the handler's script file or dependencies cannot do initialization using the env variables outside of the handler itself.

In Lambda, the process.env variables are set at the very beginning before anything is run.

`run` needs to set `process.env` before it requires the handler, otherwise the handler's script file or dependencies cannot do initialization using the env variables outside of the handler itself.
@DeviaVir
Copy link
Collaborator

👍

@DeviaVir DeviaVir merged commit 3e4cfed into motdotla:master Aug 16, 2016
This was referenced Aug 16, 2016
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.

2 participants