Explain how to use configuration providers to override settings based on the environment.