Skip to content

Update source-configs.js to allow for empty string to be set from ENV variables#378

Merged
kethinov merged 1 commit intorooseveltframework:mainfrom
huangbaron2:empty-string-env
Mar 11, 2026
Merged

Update source-configs.js to allow for empty string to be set from ENV variables#378
kethinov merged 1 commit intorooseveltframework:mainfrom
huangbaron2:empty-string-env

Conversation

@huangbaron2
Copy link
Copy Markdown
Contributor

This change allows for empty string to be set from ENV variables which is different than unsetting the ENV. The original if check would return false because empty string is falsey. The change explicitly checks the process.env JSON to see if the key exists and then sets the variable to whatever is there (which can now be empty string)

@kethinov kethinov merged commit 7e8ceee into rooseveltframework:main Mar 11, 2026
9 checks passed
@kethinov
Copy link
Copy Markdown
Member

Thanks!

Published to npm as 1.0.1 https://www.npmjs.com/package/source-configs?activeTab=versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants