diff --git a/components/Lightbox.tsx b/components/Lightbox.tsx index c72ff26..680e7c0 100644 --- a/components/Lightbox.tsx +++ b/components/Lightbox.tsx @@ -175,8 +175,8 @@ export function Lightbox({ assets, currentIndex, onClose, onNext, onPrev }: Ligh src={current.previewUrl} alt="" draggable={false} - crossOrigin="anonymous" onLoad={() => setImageLoaded(true)} + onError={() => console.error(`[Lightbox] Failed to load image: ${current.previewUrl}`)} /> diff --git a/vitest.setup.ts b/vitest.setup.ts index 9650b65..56fa04a 100644 --- a/vitest.setup.ts +++ b/vitest.setup.ts @@ -1,5 +1,3 @@ -import { vi } from 'vitest'; - // Set mandatory environment variables for all tests process.env.IMMICH_API_URL = 'http://immich.test'; process.env.IMMICH_API_KEY = 'test-key';