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

feat(EurekaClient.js): Allow an independent EUREKA_ENV env variable. #151

Merged
merged 3 commits into from May 31, 2019

Conversation

anacasner
Copy link
Contributor

This allows developers to select whatever Eureka config file they need without having to rely on NODE_ENV.
For example, we can set EUREKA_ENV=test, but keep NODE_ENV=production for all the middleware and components in our library.

This allows developers to select whatever Eureka env/config they need
without having to rely on NODE_ENV.
For example, we can set EUREKA_ENV to 'test', but keep
NODE_ENV='production' for all the middleware and components in our
library.
@awolden
Copy link
Collaborator

awolden commented May 30, 2019

This seems good. I think the best way to handle environment overrides, would be to allow consumers to directly pass in the environment in the class constructor config instead of relying on magic env variables, but this pattern does fit without how it's currently being used.

Can you also update the readme and increment the package.json version?

Thanks!

Copy link
Owner

@jquatier jquatier left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for the documentation, too.

@anacasner
Copy link
Contributor Author

Thank you for the review, @jquatier. I don't have write access though, so I can't merge the PR myself. Could someone else merge it please and thank you? :)

@awolden awolden merged commit c83bbfb into jquatier:master May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants