I need my project to have different configurations as per environments, production
, development
& local
.
I searched so two different suggestions are made by people:
1] Making use of env.json, See this thread
2] .env file ( Here I am not sure how to name file for prod & dev ), See this npm plugin
I am confused about what is officially supported for express js server.