Skip to content
Discussion options

You must be logged in to vote

You will need to set these environment variables before triggering the import chain because import is far more aggressive than require(). This is a Node.js decision about determinism rather than a bug with node-config.

Edit to add: There aren't a lot of environment variables I like to set in a setup shell or in pm2.config but this is for certain one of them.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@yiqingpeng
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jdmarshall
Comment options

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
Category
Q&A
Labels
None yet
3 participants