-
Notifications
You must be signed in to change notification settings - Fork 24
Description
On a project I'm adding dotenv-extended to, we're using assignToProcessEnv for the first time (we kept values separated before). This doesn't seem to be working however, values are not assigned to process.env. We'd like to rule out user error first, so we double-checked the readme and found this confusing line:
If this is set, you must capture the return value of the call to .load() or you will not be able to use your variables
What does this actually mean? All we can guess is we must const values = dotenv.load(...); (and then just ignore values since the whole point is we want process.env) instead of just dotenv.load(...);, but we don't see how "capturing" the return value this way can make any difference for the values being assigned to process.env during load(). The const isn't fixing our problem anyway. Could you clarify, please? Thanks.