-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.mjs
98 lines (97 loc) · 2.14 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
typescript: {
ignoreBuildErrors: true
},
experimental: {
serverActions: {
allowedForwardedHosts: ['wouldyoubot.gg'],
allowedOrigins: ['wouldyoubot.gg']
}
},
async headers() {
return [
{
source: '/(.*)',
headers: [
{
key: 'Strict-Transport-Security',
value: 'max-age=31536000; includeSubDomains; preload',
},
{
key: 'Content-Security-Policy',
value: "frame-ancestors 'self' https://top.gg https://bottom.gg;",
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
],
},
];
},
async redirects() {
return [
{
source: '/support',
destination: 'https://discord.com/invite/vMyXAxEznS',
permanent: true
},
{
source: '/rivo',
destination: 'https://rivo.gg',
permanent: true
},
{
source: '/invite',
destination:
'https://discord.com/oauth2/authorize?client_id=981649513427111957&permissions=275415247936&scope=bot%20applications.commands',
permanent: true
},
{
source: '/reddit',
destination: 'https://www.reddit.com/r/WouldYou/',
permanent: true
},
{
source: '/discord',
destination: '/support',
permanent: true
},
{
source: '/imprint',
destination: '/legal',
permanent: true
},
{
source: '/impressum',
destination: '/legal-de',
permanent: true
},
{
source: '/manage/subscription',
destination: '/api/subs/manage',
permanent: true
}
]
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.discordapp.com',
port: '',
pathname: '/**'
},
{
protocol: 'https',
hostname: 'cdn.wouldyoubot.gg',
port: '',
pathname: '/**'
}
]
}
}
export default nextConfig