Skip to content

Commit

Permalink
chore: adjust image optimization settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bmstefanski committed Feb 24, 2024
1 parent 8332fe4 commit e367d87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const config = withPlugins([[withBundleAnalyzer({ enabled: process.env.ANALYZE =
},
experimental: { ppr: true },
images: {
deviceSizes: [640, 750, 828, 1080, 1200],
deviceSizes: [320, 640, 750, 828, 1080, 1200],
minimumCacheTTL: 31_556_926,
formats: ["image/avif", "image/webp"],
remotePatterns: [
{
Expand Down
2 changes: 1 addition & 1 deletion apps/web/views/Search/HitsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function HitsSection({ hits }: HitsSectionProps) {
aspectRatio: "400/300",
objectFit: "contain",
}}
sizes="400px"
sizes="300px"
width={400}
priority={idx === 0}
/>
Expand Down

0 comments on commit e367d87

Please sign in to comment.