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',