Fix compilation when disabling preview server