Skip to content

Conversation

@SargeKhan
Copy link

Adds support for loading configuration from .js files in addition to .json files.

Changes

  • Updated loadConf() to check for .js files after .json files
  • Updated getConf() to use require() for JS files

Related PRs

This is part of the JS config support feature across multiple repos.

Add support for JavaScript-based config files as a fallback when JSON
config files are not found. The priority order is:
1. {env}.{name}.json (env-specific JSON)
2. {name}.json (base JSON)
3. {env}.{name}.js (env-specific JS)
4. {name}.js (base JS)
@SargeKhan SargeKhan marked this pull request as draft January 19, 2026 12:50
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.

1 participant