Preparing configuration with environments.