-
-
Notifications
You must be signed in to change notification settings - Fork 145
/
next.config.mjs
118 lines (115 loc) · 2.93 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import million from 'million/compiler'
/** @type {import('next').NextConfig} */
const nextConfig = {
logging: {
fetches: {
fullUrl: process.env.NODE_ENV === 'development'
}
},
compiler: {
removeConsole: {
exclude: ['error', 'info']
}
},
trailingSlash: false,
images: {
deviceSizes: [390, 435, 768, 1024, 1280],
formats: ['image/avif']
},
async redirects() {
return [
{
source: '/turkiyeden-gitmek-berline-uzanan-bir-goc-hikayesi-bolum-1-nedenler',
destination: '/writing/bir-yazilimci-olarak-turkiyeden-gitmek',
permanent: true
},
{
source: '/writing/bir-yazilimci-olarak-turkiyeden-gitmek-bolum-1-nedenler',
destination: '/writing/bir-yazilimci-olarak-turkiyeden-gitmek',
permanent: true
},
{
source: '/what-i-have-learned-from-working-with-html5-video-over-a-month',
destination: '/writing/what-i-have-learned-from-working-with-html5-video-over-a-month',
permanent: true
},
{
source: '/useFetch-react-hook',
destination: '/writing/useFetch-react-hook',
permanent: true
},
{
source: '/understanding-react-memo',
destination: '/writing/understanding-react-memo',
permanent: true
},
{
source: '/blog/:slug',
destination: '/writing/:slug',
permanent: true
},
{
source: '/bookmarks/18259129',
destination: '/bookmarks/apps-and-tools',
permanent: true
},
{
source: '/bookmarks/15968768',
destination: '/bookmarks/design',
permanent: true
},
{
source: '/bookmarks/23598938',
destination: '/bookmarks/fonts',
permanent: true
},
{
source: '/bookmarks/16949672',
destination: '/bookmarks/frontend',
permanent: true
},
{
source: '/bookmarks/15807896',
destination: '/bookmarks/portfolio',
permanent: true
},
{
source: '/bookmarks/15807897',
destination: '/bookmarks/reading',
permanent: true
},
{
source: '/bookmarks/15896982',
destination: '/bookmarks/tweets',
permanent: true
},
{
source: '/bookmarks/15969648',
destination: '/bookmarks/vs-code',
permanent: true
},
{
source: '/bookmarks/25589709',
destination: '/bookmarks/wallpapers',
permanent: true
},
{
source: '/bookmarks/16338467',
destination: '/bookmarks/websites',
permanent: true
}
]
},
experimental: {
optimizePackageImports: ['framer-motion', '@supabase/supabase-js', 'react-tweet'],
webVitalsAttribution: ['FCP', 'LCP', 'CLS', 'FID', 'TTFB', 'INP']
}
}
const millionConfig = {
auto: {
rsc: true
},
server: true,
rsc: true
}
export default million.next(nextConfig, millionConfig)