Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

For dev environments I like to use a symlink but I suspect what you’re asking is how do I install an app and allow individual users to override a property? If you can’t think of another way to do this (eg, if it’s one or two values value NODE_CONFIG may suffice)

NODE_CONFIG_DIR can contain a comma separated list of locations. It’s not advertised terribly loudly in the docs because it’s not the first thing one should try, but there are tests that assert it as a feature, and it is not on the deprecation list. If I were you I would build this stapling process into the bootstrapping code of your application, to set both the app’s config directory and the one in $HOME at the same time.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jdmarshall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants