Open FarahZaqout opened 6 years ago
Using dotenv, and different config.env in different sides (client and server). Do you guys agree? @ashatat @amusameh @ishak52 @RamyAlshurafa
yeah, I agree. I like the idea of using a config.js file with the .env file to be able to use objects as in the article.
This is a decent read about the env files. I think it's time we try using the dotenv rather than env2 and see how it's different.
The main question:
do we make one config file in the root and use it globally across the project or do we make 2 config files one in express and another in react since we are treating them as two separate apps? and if we go for option 2, do we need a third config file for the heroku deployment?