forked from Would-You-Bot/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
72 lines (71 loc) · 1.53 KB
/
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
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
typescript: {
ignoreBuildErrors: true
},
experimental: {
serverActions: {
allowedForwardedHosts: ['reviverbot.com'],
allowedOrigins: ['reviverbot.com']
}
},
async redirects() {
return [
{
source: '/vote',
destination: 'https://top.gg/bot/385824713819029504/vote',
permanent: true
},
{
source: '/support',
destination: 'https://discord.gg/7dhnR9uUvW',
permanent: true
},
{
source: '/rivo',
destination: 'https://rivo.gg',
permanent: true
},
{
source: '/invite',
destination:
'https://discord.com/oauth2/authorize?client_id=385824713819029504&permissions=335932480&scope=bot%20applications.commands',
permanent: true
},
{
source: '/discord',
destination: '/support',
permanent: true
},
{
source: '/imprint',
destination: '/legal',
permanent: true
},
{
source: '/impressum',
destination: '/legal-de',
permanent: true
}
]
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.discordapp.com',
port: '',
pathname: '/**'
},
{
protocol: 'https',
hostname: 'cdn.wouldyoubot.gg',
port: '',
pathname: '/**'
}
]
}
}
export default nextConfig