-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
115 lines (114 loc) · 3.16 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
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
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
module.exports = withBundleAnalyzer({
images: {
domains: ['res.cloudinary.com'],
},
async redirects() {
return [
{ source: '/', destination: '/info', permanent: true },
{ source: '/hello', destination: '/blog/hello', permanent: true },
{
source: '/avoiding-non-null-assertions',
destination: '/blog/avoiding-non-null-assertions',
permanent: true,
},
{
source: '/introducing-banana-tabs',
destination: '/blog/introducing-banana-tabs',
permanent: true,
},
{
source: '/my-2020-dev-setup',
destination: '/blog/my-2020-dev-setup',
permanent: true,
},
{
source: '/no-implicit-any',
destination: '/blog/catching-bugs-with-stricter-typescript',
permanent: true,
},
{
source: '/null-checking',
destination: '/blog/null-checking',
permanent: true,
},
{
source: '/custom-open-graph-images-in-gatsby-blog',
destination: '/blog/custom-open-graph-images-in-gatsby-blog',
permanent: true,
},
{
source: '/how-swr-works',
destination: '/blog/how-swr-works',
permanent: true,
},
{
source: '/json-server-glitch',
destination: '/blog/json-server-glitch',
permanent: true,
},
{
source: '/minimal-state-management-react-1',
destination: '/blog/loading-and-displaying-data-with-hooks',
permanent: true,
},
{
source: '/minimal-state-management-react-2',
destination: '/blog/changing-remote-data-with-hooks',
permanent: true,
},
{
source: '/minimal-state-management-react-3',
destination: '/blog/sharing-remote-data-with-react-context',
permanent: true,
},
{
source: '/minimal-state-management-react-4',
destination: '/blog/managing-remote-data-with-swr',
permanent: true,
},
{
source: '/prettier-pre-commit-hook',
destination: '/blog/prettier-pre-commit-hook',
permanent: true,
},
{
source: '/react-state-management-2020',
destination: '/blog/react-state-management-2020',
permanent: true,
},
{
source: '/react-typescript-library-tsdx',
destination: '/blog/react-typescript-library-tsdx',
permanent: true,
},
{
source: '/readonly-and-errors',
destination: '/blog/readonly-and-errors',
permanent: true,
},
{
source: '/strict-react-context',
destination: '/blog/strict-react-context',
permanent: true,
},
{
source: '/testing-opinions',
destination: '/blog/testing-opinions',
permanent: true,
},
{
source: '/use-promise-subscription',
destination: '/blog/use-promise-subscription',
permanent: true,
},
{
source: '/when-ts-generics',
destination: '/blog/when-ts-generics',
permanent: true,
},
]
},
})