From 61c6e0d321050f0a872a087ed32e9686d4a98986 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 29 Apr 2024 14:42:11 +0800 Subject: [PATCH] image hotfix --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index bda40204..d8a6c2ba 100644 --- a/next.config.js +++ b/next.config.js @@ -56,7 +56,7 @@ function scanSubdirectories(directory) { const nextConfig = { images: { // 图片压缩 - formats: ['image/avif', 'image/webp', 'image/png'], + formats: ['image/avif', 'image/webp'], // 允许next/image加载的图片 域名 domains: [ 'gravatar.com',