1
0
Fork 0

feat: support avif image format

This commit is contained in:
Vojtěch Mareš 2023-01-12 14:42:22 +01:00
parent 87cbaa689c
commit 2f8de720b9
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -20,6 +20,9 @@ const nextConfig = {
scrollRestoration: true, scrollRestoration: true,
}, },
pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"], pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"],
images: {
formats: ["image/avif", "image/webp"],
},
}; };
module.exports = withMDX(nextConfig); module.exports = withMDX(nextConfig);