Skip to content
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

dotenv silently fails to read a string variable if it is not enclosed in quotes in .env file #38

Open
rubyfin opened this issue Feb 17, 2020 · 0 comments

Comments

@rubyfin
Copy link

rubyfin commented Feb 17, 2020

If I have a string variable in a .env file like this, then it won't find it and will just ignore it:

PORT=5000
NICE_NAME=My Service

But if I add quotes to the string, then everything is fine:

PORT=5000
NICE_NAME="My Service"

I understand the rationale, but I think it would be better to display an error / warning message, instead of silently dropping the offending variable.

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

No branches or pull requests

1 participant