-
-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathnext.config.ts
More file actions
60 lines (55 loc) · 1.25 KB
/
next.config.ts
File metadata and controls
60 lines (55 loc) · 1.25 KB
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
59
60
import type { NextConfig } from "next"
import createMDX from "@next/mdx"
import remarkGfm from "remark-gfm"
const nextConfig: NextConfig = {
/* config options here */
// Configuration pour MDX
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "yt3.googleusercontent.com",
},
{
protocol: "https",
hostname: "yt3.ggpht.com",
},
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
protocol: "https",
hostname: "designmodo.com",
},
...(process.env.NEXT_PUBLIC_UPLOADTHING_URL
? [
{
protocol: "https" as const,
hostname: process.env.NEXT_PUBLIC_UPLOADTHING_URL,
},
]
: []),
{
protocol: "https",
hostname: "images.unsplash.com",
},
{
protocol: "https",
hostname: "nexty.dev",
},
],
},
}
const withMDX = createMDX({
options: {
remarkPlugins: [remarkGfm],
},
})
// Combine MDX and Next.js config
export default withMDX(nextConfig)