Refactoring API env-specific config to a rc file