Closed nsauter closed 1 year ago
Does it really make sense to support .env-files as it is possible the configure the settings in the config-files? Currently process.env.MONGO_URI
returns the value of the environment variable MONGO_URI
.
Im not the owner of the project and i dont care if it makes sense to read values from .env. All i see is, that the project tries to read vaules from .env but the needed package and configuration is missing. Im just trying to fix that issue.
Custom config files have now been removed and instead .env
or environment variables should be used for configuration.
config/default.js tries to read values from .env files but it's missing the dotenv npm package. This fix will add the dotenv package and needed config.
for example: