You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin would read the env file but the env variables would not be set on the AWS lambda function. Maybe it was conflicting with other plugins.
I managed to fix it by adding the hook: "before:package:initialize": this.loadEnv.bind(this)
to this.hooks in the constructor in index.js.
Maybe this would help anyone.
I'm not convinced this is an universal solution as to create a pull request.
The text was updated successfully, but these errors were encountered:
todda00
added a commit
to Concentrek/serverless-dotenv-plugin
that referenced
this issue
May 15, 2018
This plugin would read the env file but the env variables would not be set on the AWS lambda function. Maybe it was conflicting with other plugins.
I managed to fix it by adding the hook:
"before:package:initialize": this.loadEnv.bind(this)
to
this.hooks
in the constructor in index.js.Maybe this would help anyone.
I'm not convinced this is an universal solution as to create a pull request.
The text was updated successfully, but these errors were encountered: