feat(images): enable Next.js image optimization with complete upstream buffer retrieval and explicit MIME types
Deploy Canina / deploy (push) Successful in 2m4s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 7s

This commit is contained in:
parsa aghaei committed 2026-09-02 16:14:33 +03:30
1 parent 89e59c8427
commit 08ad51152f
4 files changed
+81 -11

No files matched your search

-2
View File
@@ -198,7 +198,6 @@ export default function Hero({ banners = [], onShopNavigate }: { banners?: Banne
alt={banner.title || "Canina Pharma Germany"}
fill
priority={idx === 0}
unoptimized={true}
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 600px"
className="object-cover"
/>
@@ -211,7 +210,6 @@ export default function Hero({ banners = [], onShopNavigate }: { banners?: Banne
alt={activeBanner?.title || "Canina Pharma Germany"}
fill
priority
unoptimized={true}
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 600px"
className="object-cover"
/>
@@ -104,12 +104,7 @@ export default function SafeImage({
unoptimized={
isBlobOrData ||
!isAllowedHost ||
(typeof src === 'string' && (
src.startsWith('/api/uploads/') ||
src.startsWith('/api/media/') ||
src.startsWith('/uploads/') ||
src.toLowerCase().endsWith('.svg')
))
(typeof src === 'string' && src.toLowerCase().endsWith('.svg'))
}
className={cn(
"transition-all duration-500 w-full h-full object-contain",