next 图片压缩

This commit is contained in:
tangly1024
2022-05-13 15:45:16 +08:00
parent d9d7839e7d
commit ef1ea5edc7

View File

@@ -6,6 +6,8 @@ module.exports = withBundleAnalyzer({
webpack5: true
},
images: {
// 图片压缩
formats: ['image/avif', 'image/webp'],
// 允许next/image加载的图片 域名
domains: [
'gravatar.com',