How do you handle boolean and numeric .env variables using dotenv? #9619
Unanswered
ajcastro
asked this question in
General - Components / Directives / etc
Replies: 1 comment 1 reply
-
env variables always returns strings, you can do some checking ie. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I saw from the docs that the latest recommended dotenv plugin as show in example is https://github.com/motdotla/dotenv, but when I tried it, it doesn't support boolean and numeric values.
I reported an issue in their repo, motdotla/dotenv#544.
How do you handle boolean and numeric .env variables?
Beta Was this translation helpful? Give feedback.
All reactions