-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.js
58 lines (56 loc) · 1.07 KB
/
next.config.js
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
module.exports = async (phase, { defaultConfig }) => {
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
swcMinify: true,
eslint: {
ignoreDuringBuilds: true
},
webpack: (config, options) => {
config.experiments = {
layers: true,
topLevelAwait: true,
};
return config;
},
pageExtensions: ["js", "jsx", "ts", "tsx"],
images: {
formats: ["image/avif", "image/webp"],
domains: [
"source.unsplash.com",
"tailwindui.com",
"images.unsplash.com",
"cdn.pixabay.com",
"globalconflicts.net",
"launcher.globalconflicts.net",
"imgur.com",
"i.imgur.com",
"cdn.discordapp.com",
"community.cloudflare.steamstatic.com",
"avatars.akamai.steamstatic.com"
],
},
async redirects() {
return [
{
source: "/guides",
destination: "/guides/getting-started",
permanent: true,
},
{
source: "/",
has: [
{
type: "query",
key: "callbackUrl",
},
],
permanent: true,
destination: "/",
},
];
},
};
return nextConfig;
};