-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
executable file
·64 lines (62 loc) · 1.24 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
/** @type {import('next').NextConfig} */
const config = {
poweredByHeader: false,
swcMinify: true,
reactStrictMode: true,
compress: true,
images: {
domains: ['avatars.githubusercontent.com'],
},
async rewrites() {
return [
{
source: '/fetch',
destination: '/api/fetch',
},
{
source: '/save',
destination: '/api/save',
},
{
source: '/ping',
destination: '/api/ping',
},
{
source: '/teapot',
destination: '/api/teapot',
},
];
},
webpack: (config) => {
config.experiments = {
topLevelAwait: true,
layers: true,
};
return config;
},
async redirects() {
return [
{
source: '/github',
destination: 'https://github.com/Rahuletto/CodeBoard',
permanent: true,
},
{
source: '/discord',
destination: 'https://discord.gg/3JzDV9T5Fn',
permanent: true,
},
{
source: '/email',
destination: 'mailto:[email protected]',
permanent: true,
},
{
source: '/support',
destination: 'https://discord.gg/3JzDV9T5Fn',
permanent: true,
},
];
},
}
export default config