Skip to content

Centralize Environment Config #31

@allenbakki

Description

@allenbakki

Instead of scattering environment variables (process.env) throughout the code, centralize them in one configuration file.

Create a config file:
src/config/index.js

Collect all environment variables you need (DB connection, API keys, ports, etc.)
Provide default values if needed and export and import from the file

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions