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

Allow multiple relative directory paths separated by path.delimiter to work #661

Merged
merged 2 commits into from
Jan 15, 2022

Conversation

inside
Copy link
Contributor

@inside inside commented Oct 8, 2021

  • Add tests for the multiple configurations feature
  • transform each relative config dir to an absolute path

fix: #660

This feature is documented here:
https://github.com/lorenwest/node-config/wiki/Environment-Variables#node_config_dir

Relative or absolute paths separated by `path.delimiter` as a value for
`process.env.NODE_CONFIG_DIR` should work.
@inside inside changed the title master Allow multiple relative directory paths separated by path.delimiter to work Oct 8, 2021
Copy link
Collaborator

@markstos markstos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for PR with test. See the one question I have about resolving paths.

lib/config.js Show resolved Hide resolved
@markstos markstos merged commit cfde385 into node-config:master Jan 15, 2022
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

Successfully merging this pull request may close these issues.

NODE_CONFIG_DIR multiple relative directory paths separated by path.delimiter throws an error
2 participants