-
-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathnext.config.mjs
More file actions
34 lines (31 loc) · 791 Bytes
/
next.config.mjs
File metadata and controls
34 lines (31 loc) · 791 Bytes
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
import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin(
// Specify a custom path here
'./src/i18n.ts'
);
// const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
// 允许加载图片的host
remotePatterns: [
{
protocol: 'https',
hostname: 'favicon.im',
},
{
protocol: 'https',
hostname: 'domainscore.ai',
},
{
protocol: 'https',
hostname: 'llmgpuhelper.com',
},
],
// 允许加载svg图片
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
},
optimizeFonts: true,
};
export default withNextIntl(nextConfig);