-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
adapter: context.env should not contain process.env #17
Comments
Most environments (except OW) use process.env for user-config, so I merged the two. I wouldn't want to have a check in my function code that switches between |
but having a distinction between environment variables, like API_HOST etc, and the env provided by the |
The biggest advantage would probably be collision prevention, but I think that's quite theoretical. We would need a (for each runtime) an up-to-date list of runtime-provided environment variables, so that we can disentangle runtime-provided vars from user-provided vars – this could probably be done by deploying an action that echos the In reality I think only wrapper code (like invoke or version-lock or log setup) should interact with |
but for the actions, only the user-provided vars are important:
I agree, the actions should never use process.env |
So yes, cleaning |
having the
process.env
variables mixed into thecontext.env
object is kind of redundant and might be confusing.context.env
should only contain the information that is specific to the deployed environment.an action can still use
process.env
explicitely.The text was updated successfully, but these errors were encountered: