To simplify the configuration of multiple regions (and multiple properties per Region), it would be nice to be able to use something more convenient then ENV-variables.
Preferably using a commonly used 'default'. (Like dotenv)
Option: "as JS"
Using .config.js or [.?]helpful-information.config.js
with module.exports = ...
Would allow for comments, extra formatting, etc
Choose between CJS or ESM format?
Things to consider:
How to easily override per environment? (Or at least in local development?)
Maybe with:
.defaults.config.js (always present, with comments)
.env.config.js (optional, ignored by git)
.local.config.js (optional, only for local development, ignored by git)
All 3 files could be checked for, and then 'merged on top of' the defaults during a build/run.
Or there might be an existing practice/package for this?
How to define (safe) defaults? (And then override only when needed)
How to ignore in git (and keep override/defaults features)?
To simplify the configuration of multiple regions (and multiple properties per Region), it would be nice to be able to use something more convenient then ENV-variables.
For example:
Preferably using a commonly used 'default'. (Like
dotenv
)Option: "as JS"
.config.js
or[.?]helpful-information.config.js
module.exports = ...
CJS
orESM
format?Things to consider:
How to easily override per environment? (Or at least in local development?)
Maybe with:
.defaults.config.js
(always present, with comments).env.config.js
(optional, ignored by git).local.config.js
(optional, only for local development, ignored by git) All 3 files could be checked for, and then 'merged on top of' the defaults during a build/run.Or there might be an existing practice/package for this?
Examples / Inspiration / Related
To Do