Spaces:
Sleeping
Sleeping
Commit ·
d62c328
1
Parent(s): 80f0f30
frontend/app/page.tsx
CHANGED
|
@@ -63,7 +63,7 @@ const DashboardAdCard = memo(function DashboardAdCard({
|
|
| 63 |
onError={handleImageError}
|
| 64 |
loading="lazy"
|
| 65 |
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
| 66 |
-
unoptimized={imageSrc.startsWith('http://') || imageSrc.includes('r2.cloudflarestorage.com') || imageSrc.includes('replicate.delivery')}
|
| 67 |
/>
|
| 68 |
) : (
|
| 69 |
<div className="w-full h-full flex items-center justify-center">
|
|
|
|
| 63 |
onError={handleImageError}
|
| 64 |
loading="lazy"
|
| 65 |
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
| 66 |
+
unoptimized={imageSrc.startsWith('http://') || imageSrc.includes('r2.cloudflarestorage.com') || imageSrc.includes('replicate.delivery') || imageSrc.includes('/serve-image') || imageSrc.includes('/images/')}
|
| 67 |
/>
|
| 68 |
) : (
|
| 69 |
<div className="w-full h-full flex items-center justify-center">
|
frontend/components/gallery/AdCard.tsx
CHANGED
|
@@ -64,7 +64,7 @@ export const AdCard: React.FC<AdCardProps> = memo(({
|
|
| 64 |
onError={handleImageError}
|
| 65 |
loading="lazy"
|
| 66 |
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
| 67 |
-
unoptimized={imageSrc.startsWith('http://') || imageSrc.includes('r2.cloudflarestorage.com') || imageSrc.includes('replicate.delivery')}
|
| 68 |
/>
|
| 69 |
) : (
|
| 70 |
<div className="w-full h-full flex items-center justify-center">
|
|
|
|
| 64 |
onError={handleImageError}
|
| 65 |
loading="lazy"
|
| 66 |
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
| 67 |
+
unoptimized={imageSrc.startsWith('http://') || imageSrc.includes('r2.cloudflarestorage.com') || imageSrc.includes('replicate.delivery') || imageSrc.includes('/serve-image') || imageSrc.includes('/images/')}
|
| 68 |
/>
|
| 69 |
) : (
|
| 70 |
<div className="w-full h-full flex items-center justify-center">
|