Skip to content

Fix image optimization: enable Next.js Image for all assets#32

Merged
viignacio merged 4 commits into
mainfrom
chore/claude-optimizations
Mar 16, 2026
Merged

Fix image optimization: enable Next.js Image for all assets#32
viignacio merged 4 commits into
mainfrom
chore/claude-optimizations

Conversation

@viignacio

Copy link
Copy Markdown
Owner

Summary

  • Remove unoptimized: true from next.config.js — re-enables WebP/AVIF, responsive srcset, and blur placeholders globally
  • Drop redundant unoptimized prop from logo <Image> usages in Layout.tsx
  • Upgrade Hero profile <img> to <Image priority> for proper LCP prioritization
  • Add fill + sizes props to MediaRenderer; project and certification card images now render with <Image fill> for full srcset support
  • Lazy-load FaultyTerminal via next/dynamic to skip SSR for the WebGL background

- Remove `unoptimized: true` from next.config.js to re-enable
  WebP/AVIF conversion, responsive srcset, and blur placeholders
- Drop redundant `unoptimized` prop from three logo <Image> usages
  in Layout.tsx
- Upgrade Hero profile image from <img> to <Image priority> for
  proper LCP prioritization
- Add `fill` + `sizes` props to MediaRenderer; project and
  certification card images now use <Image fill> with srcset
- Add `loading="lazy"` to the <img> fallback path in MediaRenderer
- Lazy-load FaultyTerminal via next/dynamic (ssr: false) to avoid
  SSR overhead for the WebGL background

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
van-portfolio Ready Ready Preview, Comment Mar 16, 2026 2:40pm

- Add display: 'swap' to Outfit and Plus_Jakarta_Sans fonts to eliminate FOIT
- Add preconnect hint for cdn.sanity.io to reduce DNS/TLS latency
- Merge getHomePageSeo into getHomePage with React cache() to eliminate
  a redundant Sanity API round-trip per ISR cycle
- Remove reactStrictMode: false to re-enable dev-time safety checks
- Fix staleTimes.static: 0 → 30 to enable static route caching
- Remove unused react-icons dependency

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@viignacio
viignacio merged commit 2a217d3 into main Mar 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants