/
next.config.js
50 lines (50 loc) · 1.17 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
/** @type {import('next').NextConfig} */
module.exports = {
// https://stackoverflow.com/questions/72399203/google-fonts-not-loading
optimizeFonts: false,
reactStrictMode: true,
images: {
domains: [
'res.cloudinary.com',
'avatars.githubusercontent.com',
'lh0.googleusercontent.com',
'lh1.googleusercontent.com',
'lh2.googleusercontent.com',
'lh3.googleusercontent.com',
'lh4.googleusercontent.com',
'lh5.googleusercontent.com',
'lh6.googleusercontent.com',
'lh7.googleusercontent.com',
'lh8.googleusercontent.com',
'lh9.googleusercontent.com',
],
},
async redirects() {
return [
{
source: '/post/:slug',
destination: '/certificate/:slug',
permanent: true,
},
]
},
webpack: (config) => {
config.resolve = {
...config.resolve,
fallback: {
fs: false,
path: false,
os: false,
child_process: false,
net: false,
tls: false,
perf_hooks: false,
async_hooks: false,
console: false,
'stream/web': false,
'util/types': false,
},
}
return config
},
}