-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnext.config.js
42 lines (42 loc) · 930 Bytes
/
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
module.exports = {
reactStrictMode: true,
async redirects() {
return [
{
source: '/tag/:tag',
destination: '/tags/:tag/pages/1',
permanent: true,
},
{
source: '/tag/:tag/page/:no',
destination: '/tags/:tag/pages/:no',
permanent: true,
},
{
source: '/tags/:tag/pages/((?!\\d).*)',
destination: '/tags/:tag/pages/1',
permanent: true,
},
{
source: '/tags/:tag',
destination: '/tags/:tag/pages/1',
permanent: true,
},
{
source: '/category/:tag',
destination: '/tags/:tag/pages/1',
permanent: true,
},
{
source: '/category/:tag/page/:no',
destination: '/tags/:tag/page/:no',
permanent: true,
},
{
source: '/categories',
destination: '/tags',
permanent: true,
},
]
},
}