修复已知的图片加载问题

This commit is contained in:
tangly1024.com
2024-04-29 13:55:30 +08:00
parent 4811cb7319
commit 9f64302ab6
2 changed files with 1 additions and 16 deletions

View File

@@ -54,21 +54,6 @@ function scanSubdirectories(directory) {
}
const nextConfig = {
images: {
// 图片压缩
formats: ['image/avif', 'image/webp'],
// 允许next/image加载的图片 域名
domains: [
'gravatar.com',
'www.notion.so',
'avatars.githubusercontent.com',
'images.unsplash.com',
'source.unsplash.com',
'p1.qhimg.com',
'webmention.io',
'ko-fi.com'
]
},
// 默认将feed重定向至 /public/rss/feed.xml
async redirects() {
return [