-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
47 lines (44 loc) · 890 Bytes
/
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
import mdx from "@next/mdx";
const withMDX = mdx()
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
experimental: {
mdxRs: true,
turbo: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js',
},
}
}
},
images: {
dangerouslyAllowSVG: true,
remotePatterns: [
{
hostname: 'placehold.co',
protocol: 'https',
},
{
hostname: 'picsum.photos',
protocol: 'https',
},
{
hostname: "avatars.githubusercontent.com",
},
{
hostname: "res.cloudinary.com",
protocol: "https"
}
]
},
serverRuntimeConfig: {
apiURL: process.env.API_URL
},
publicRuntimeConfig: {
apiURL: process.env.API_URL
}
}
export default withMDX(nextConfig);