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
I think you might find more mileage with the built-in dotenv support? Unfortunately, it does not allow for custom paths - the dotenv file must live in the root directory of the project.
. We do everything in the constructor today to try to be the first thing that happens when Serverless does its thing. However, that means. Serverless hasn't interpolated the values for us at that time.
There might be a way to trigger interpolation, but it might be via a non-public API, which isn't a great option.
Unfortunately, I do not have a workaround at time. Open to ideas!
I thought about this more, and I think there are sufficient alternatives that I am comfortable closing this with wontfix. I added some workarounds in #106.
Please feel free to reopen if you have additional feedback. Thanks!
Activity
SimonHoiberg commentedon Jul 28, 2020
+1 on this one.
I would love to be able to do something like this:
neverendingqs commentedon Feb 6, 2021
I think you might find more mileage with the built-in dotenv support? Unfortunately, it does not allow for custom paths - the dotenv file must live in the root directory of the project.
As noted in #38 (comment),
. We do everything in the constructor today to try to be the first thing that happens when Serverless does its thing. However, that means. Serverless hasn't interpolated the values for us at that time.
There might be a way to trigger interpolation, but it might be via a non-public API, which isn't a great option.
Unfortunately, I do not have a workaround at time. Open to ideas!
neverendingqs commentedon Feb 7, 2021
I thought about this more, and I think there are sufficient alternatives that I am comfortable closing this with
wontfix. I added some workarounds in #106.Please feel free to reopen if you have additional feedback. Thanks!