feat: support avif image format
This commit is contained in:
parent
87cbaa689c
commit
2f8de720b9
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Reference in a new issue