perf: enable Next.js image optimization across backoffice
Remove `unoptimized` flag from all thumbnail/cover Image components and add proper responsive `sizes` props. Convert raw `<img>` tags on the libraries page to next/image. Add 24h minimumCacheTTL for optimized images. BookPreview keeps `unoptimized` since the API already returns optimized WebP. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,7 @@ export default async function LibrarySeriesPage({
|
||||
alt={t("books.coverOf", { name: s.name })}
|
||||
fill
|
||||
className="object-cover"
|
||||
unoptimized
|
||||
sizes="(max-width: 640px) 50vw, (max-width: 768px) 33vw, (max-width: 1024px) 25vw, 20vw"
|
||||
/>
|
||||
</div>
|
||||
<div className="p-3">
|
||||
|
||||
Reference in New Issue
Block a user