pub fn init(preview: Preview) -> Result<(), InitError>
Initialize the global preview configuration.
This should be called once at startup with the resolved preview settings.