-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathnext.config.ts
More file actions
85 lines (83 loc) · 1.85 KB
/
next.config.ts
File metadata and controls
85 lines (83 loc) · 1.85 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
outputFileTracingExcludes: {
"/*": ["public/icons/unused/**"]
},
images: {
deviceSizes: [360, 480, 600, 720, 840, 960, 1080, 1200, 1440, 1680],
imageSizes: [
24, 36, 48, 72, 96, 144, 192, 224, 240, 256, 288, 360, 448, 462, 512, 604,
924, 1208
],
formats: ["image/avif", "image/webp"],
localPatterns: [
{
pathname: "/images/**"
},
{
pathname: "/api/theme-screenshot"
}
],
remotePatterns: [
{
hostname: "avatars.githubusercontent.com"
},
{
hostname: "github.com"
},
{
hostname: "raw.githubusercontent.com"
},
{
hostname: "user-images.githubusercontent.com"
},
{
hostname: "img.shields.io"
},
{
hostname: "i.imgur.com"
}
]
},
async redirects() {
return [
{
source: "/discord-invite",
destination: "https://discord.gg/yDcFsrYuq9",
permanent: true
},
{
source: "/journey",
destination: "/pro/journey",
permanent: true
},
{
source: "/shop/dracula-sticker-pack",
destination: "https://draculatheme.com/shop/dracula-sticker-pack-n1",
permanent: true
},
{
source: "/foot-terminal",
destination: "/foot",
permanent: true
},
{
source: "/terminal",
destination: "/terminal-app",
permanent: true
},
{
source: "/blog/pro/changelog",
destination: "/pro/changelog",
permanent: true
},
{
source: "/ui",
destination: "https://ui.draculatheme.com",
permanent: true
}
];
}
};
export default nextConfig;