Skip to content

Merge .env variables into process.env #10

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

Closed

Conversation

the-red
Copy link

@the-red the-red commented Apr 8, 2019

Hi.

Using twilio-run with --env option, I can use ACCOUNT_SID and AUTH_TOKEN variables in Twilio authorization.
However, I cannot use .env variables in my Functions.

I'd like to use .env in my Functions.
How about merging config.env into proess.env? 😃

@the-red
Copy link
Author

the-red commented Jun 7, 2019

Oh, I misunderstood how to use environment variables 😱
context.VARIABLE is correct, not process.env.VARIABLE.
https://jp.twilio.com/docs/runtime/functions/invocation#environmental-variables

I will close this pull request.

@the-red the-red closed this Jun 7, 2019
dkundel pushed a commit that referenced this pull request Aug 11, 2020
dkundel pushed a commit that referenced this pull request Aug 11, 2020
dkundel pushed a commit that referenced this pull request Aug 12, 2020
dkundel added a commit that referenced this pull request Aug 12, 2020
dkundel added a commit that referenced this pull request Aug 12, 2020
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.

1 participant