How I configure Sanity image URL auto=format with next/image to serve WebP and AVIF
Jun 02, 2026 · 6 min read
Using Sanity's auto=format with next/image correctly avoids double-encoding and wasted bytes. Here is the exact setup I use in production.
Tag
1 post
Jun 02, 2026 · 6 min read
Using Sanity's auto=format with next/image correctly avoids double-encoding and wasted bytes. Here is the exact setup I use in production.