-
Notifications
You must be signed in to change notification settings - Fork 416
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
Some, not all, environment vars are missing #99
Comments
I found why this is happening. webpack has created a single handler.js function containing both functions, which means that at set up time of |
I tested this with my project and unfortunately I'm still missing all environment variables in my handlers :( |
@bebbi Version 3.0.0 will integrate with |
|
I’ll move to offline, I appreciate your efforts very much.
… On 28 Jul 2017, at 20:02, Frank Schmid ***@***.***> wrote:
serve will be removed in the next v3.0.0 release in favor of serverless-offline (see #152 <#152> ). No efforts will be spent on the function anymore. So I'll close this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#99 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACn_h53ZCZ4u_Zyhq9gnw6tyQv7RueAUks5sSiJDgaJpZM4MAvOH>.
|
Environment variables are not all available to functions. Only the variables defined globally and those for the first function will be available when running locally. Example:
serverless.yml
:In this setup, the only variables available to the local environment are
A
andF1
.If I move func2 on top of func1, it is however
A
andF2
.The text was updated successfully, but these errors were encountered: