From ef1ea5edc76b29e7c418f6fb5b5d098fea13d732 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 13 May 2022 15:45:16 +0800 Subject: [PATCH] =?UTF-8?q?next=20=E5=9B=BE=E7=89=87=E5=8E=8B=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/next.config.js b/next.config.js index f3bd40ae..7c8627f1 100644 --- a/next.config.js +++ b/next.config.js @@ -6,6 +6,8 @@ module.exports = withBundleAnalyzer({ webpack5: true }, images: { + // 图片压缩 + formats: ['image/avif', 'image/webp'], // 允许next/image加载的图片 域名 domains: [ 'gravatar.com',