Closed apstanisic closed 1 year ago
I do not like the idea of having ugly names for basic things:
DATABASE__TYPE
vs DB_TYPE
.
Maybe it would be easier that every config declares prefix.
For example, database can declare DB
, and everything starting DB_
will be passed to database,
and db can take what it wants
Added ability to mount JSON file that will configure it
Currently, there is no way to configure app this way, and it's complicating publishing this as a docker package
I can simply do something like:
Converts to
simply by using
flat
npm package, with__
as separatorOr simply ZMAJ_CONFIG=
SOME JSON DATA TO BE INJECTED