-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
custom path does not support variables #52
Comments
+1 on this one. dotenv:
path: 'deployment/${self:provider.stage}/.env' |
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! |
I thought about this more, and I think there are sufficient alternatives that I am comfortable closing this with Please feel free to reopen if you have additional feedback. Thanks! |
for example this works for me:
but this does not
The text was updated successfully, but these errors were encountered: