Closed sylvainlap closed 7 years ago
Hi,
It is said that feathers-configuration is a simple wrapper on node-config. However, with node-config, if you have nested configuration, like that:
feathers-configuration
{ "Customer": { "dbConfig": { "host": "prod-db-server" }, "credit": { "initialDays": 30 } } }
you can access the host attribute by using config.get('Customer.dbConfig.host'). However, with feathers-configuration, this dot notation do not work.
host
config.get('Customer.dbConfig.host')
Mainly because the underlying Express app.set and app.get() don't support it. It'll be app.get('Customer').config.host instead. You could also require('config') directly and use it the way it is described.
app.get('Customer').config.host
require('config')
OK thanks. I close the issue.
Hi,
It is said that
feathers-configuration
is a simple wrapper on node-config. However, with node-config, if you have nested configuration, like that:you can access the
host
attribute by usingconfig.get('Customer.dbConfig.host')
. However, withfeathers-configuration
, this dot notation do not work.