From 2f8de720b9120960047ce05b4de1b55719dbf2ec Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Thu, 12 Jan 2023 14:42:22 +0100 Subject: [PATCH] feat: support avif image format --- next.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next.config.js b/next.config.js index e8de2ce..1ba0283 100644 --- a/next.config.js +++ b/next.config.js @@ -20,6 +20,9 @@ const nextConfig = { scrollRestoration: true, }, pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"], + images: { + formats: ["image/avif", "image/webp"], + }, }; module.exports = withMDX(nextConfig);