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

16.05 – Refactoring: Environment Variables #28

Merged
merged 2 commits into from Jul 29, 2022

Conversation

lucasconstantino
Copy link
Contributor

Consuming variables from process.env in multiple parts of your system is a know problem, sometimes even for security reasons. But beyond that, there are some tasks involved in this consuming of env variables that's just repetitive: checking if the value is present, typing the value, etc.

This PR solves it by introducing a main controller for environment variables with these common tasks simplified.

@lucasconstantino lucasconstantino changed the base branch from main to lessons/16-refactoring--architecture-map July 29, 2022 15:03
@lucasconstantino lucasconstantino changed the base branch from lessons/16-refactoring--architecture-map to lessons/16-refactoring--module-entrypoints July 29, 2022 15:14
@lucasconstantino lucasconstantino force-pushed the lessons/16-refactoring--module-entrypoints branch from acab75a to bc419dd Compare July 29, 2022 22:27
@lucasconstantino lucasconstantino changed the base branch from lessons/16-refactoring--module-entrypoints to main July 29, 2022 22:29
@lucasconstantino lucasconstantino merged commit 9d0ec10 into main Jul 29, 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.

None yet

1 participant