-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
94 lines (93 loc) · 3.1 KB
/
next.config.js
File metadata and controls
94 lines (93 loc) · 3.1 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
86
87
88
89
90
91
92
93
94
/**
* Next.js configuration options.
* @type {import("next").NextConfig}
*/
const nextConfig = {
env: {
TOKEN: process.env.TOKEN,
API_KEY: process.env.API_KEY,
CLIENT_ID: process.env.CLIENT_ID,
CLIENT_SECRET: process.env.CLIENT_SECRET,
CALLBACK_URL: process.env.CALLBACK_URL,
NEXTAUTH_SECRET: process.env.NEXTAUTH_SECRET,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
ARC_SCRIPT: process.env.ARC_SCRIPT,
DISCORD_API_VERSION: process.env.DISCORD_API_VERSION,
API_VERSION: process.env.API_VERSION,
STAFF_SERVER_ID: process.env.STAFF_SERVER_ID,
SERVER_ID: process.env.SERVER_ID
},
reactStrictMode: true,
images: {
domains: ["images.dmca.com", "cdn.discordapp.com"]
},
async redirects() {
return [
{
source: "/products/lynx",
destination:
"https://docs.matrixdev.xyz/projects/our-discord-bots/lynx",
permanent: true
},
{
source: "/products/adix",
destination:
"https://docs.matrixdev.xyz/projects/our-discord-bots/adix",
permanent: true
},
{
source: "/invite/lynx",
destination:
"https://discord.com/oauth2/authorize?client_id=771621658741178368&permissions=1644971949559&scope=bot%20applications.commands",
permanent: true
},
{
source: "/invite/adix",
destination:
"https://discord.com/oauth2/authorize?client_id=853464071940603954&permissions=1644971949559&scope=bot%20applications.commands",
permanent: true
},
{
source: "/discord",
destination: "https://discord.com/invite/Tz4aGqWfMb",
permanent: true
},
{
source: "/twitter",
destination: "https://twitter.com/Develop_Matrix",
permanent: true
},
{
source: "/instagram",
destination: "https://www.instagram.com/develop_matrix/",
permanent: true
},
{
source: "/github",
destination: "https://github.com/MatrixDevelopment-GH",
permanent: true
},
{
source: "/docs",
destination: "https://docs.matrixdev.xyz",
permanent: true
},
{
source: "/status",
destination: "https://status.matrixdev.xyz",
permanent: true
},
{
source: "/support",
destination: "https://support.matrixdev.xyz",
permanent: true
},
{
source: "/reddit",
destination: "https://www.reddit.com/r/MatrixDevelopment/",
permanent: true
}
];
}
};
module.exports = nextConfig;