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(server)!: add support for env variables in the configuration #455

Merged

Conversation

basmasking
Copy link
Member

Fixes #450

Changes proposed in this pull request:

  • Added support for environment variables in the services configuration
  • Updated the docs
  • Updated the example
  • Removed node 18 and 19 as supported version as we use Node's default capability to load .env files (avaiable from node 20)

@MaskingTechnology/jitar

@basmasking basmasking linked an issue Jan 31, 2024 that may be closed by this pull request

return DataConverter.convert<RuntimeConfiguration>(runtimeSchema, parsedContents);
}

static #replaceEnvValues(contents: string): string
Copy link
Member

Choose a reason for hiding this comment

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

We don't use abbreviations 😉

petermasking
petermasking previously approved these changes Jan 31, 2024
@petermasking petermasking merged commit 4e3c244 into main Jan 31, 2024
5 checks passed
@petermasking petermasking deleted the 450-add-support-for-env-variables-in-the-configuration branch January 31, 2024 07: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.

Add support for .env variables in the configuration
2 participants