module.exports = { images: { formats: ['image/avif', 'image/webp'] } }
Next.js에서는 WebP보다 20% 더 작은 이미지로 압축하여 사용할 수 있지만, WebP에 비해 최적화하는데 시간이 더 오래 걸릴 수 있어서 next.config.js에서 옵션으로 이용
Seonglae Cho
Seonglae Chomodule.exports = { images: { formats: ['image/avif', 'image/webp'] } }