Replace the config array in an object.