Skip to content

Introduce a Config object to hold common app configuration#129

Open
danlivings-dxw wants to merge 1 commit intofeature/refactor-nunjucks-viewsfrom
feature/common-app-config
Open

Introduce a Config object to hold common app configuration#129
danlivings-dxw wants to merge 1 commit intofeature/refactor-nunjucks-viewsfrom
feature/common-app-config

Conversation

@danlivings-dxw
Copy link
Copy Markdown
Contributor

Some properties are required in multiple places (such as the private key, which is used to sign JWTs and by Octokit to authenticate to GitHub), so rather than repeating process.env and associated parsing logic throughout the code, this object does it all in one place.

Comment thread octokitApp.js Outdated
@danlivings-dxw danlivings-dxw force-pushed the feature/common-app-config branch from fa4f68d to 4634b1b Compare March 21, 2025 15:57
@danlivings-dxw danlivings-dxw force-pushed the feature/refactor-nunjucks-views branch from 1096806 to 1740f04 Compare March 21, 2025 17:50
Some properties are required in multiple places (such as the private
key, which is used to sign JWTs and by Octokit to authenticate to
GitHub), so rather than repeating `process.env` and associated parsing
logic throughout the code, this object does it all in one place.
@danlivings-dxw danlivings-dxw force-pushed the feature/common-app-config branch from 4634b1b to 1772f34 Compare March 21, 2025 17:51
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.

2 participants