forked from AmbroseX/Awesome-AISourceHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
58 lines (57 loc) · 1.72 KB
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
// unoptimized: true,
remotePatterns: [
{
protocol: 'https',
hostname: "merakiui.com",
port: '',
pathname: '/**/*',
},
{
protocol: 'https',
hostname: "icon.horse",
port: '',
pathname: '/**/*',
},
{
protocol: 'https',
hostname: "www.soraflows.com",
port: '',
pathname: '/**/*',
},
{
protocol: 'https',
hostname: "*.producthunt.com",
port: '',
pathname: '/**/*',
},
{
protocol: 'https',
hostname: "api.iowen.cn",
port: '',
pathname: '/**/*',
},
{
protocol: 'http',
hostname: "inadequate-turquoise-macaw.faviconkit.com",
port: '',
pathname: '/**/*',
},
{
protocol: 'https',
hostname: "www.favicon.vip",
port: '',
pathname: '/**/*',
}
],
deviceSizes: [640, 768, 1024, 1280, 1600], // 设备尺寸用于响应式图片
imageSizes: [16, 32, 48, 64, 96], // 定义图片尺寸
path: '/_next/image', // 图片优化API的路径
loader: 'default',// 使用默认的图片加载器,
dangerouslyAllowSVG: true // 允许加载SVG
},
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
}
export default nextConfig;