forked from thirdweb-dev/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redirects.js
103 lines (102 loc) · 2.38 KB
/
redirects.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
/** @type {import('next').NextConfig['redirects']} */
function redirects() {
return [
{
source: "/portal/:match*",
destination: "https://portal.thirdweb.com/:match*",
permanent: true,
},
{
source: "/dashboard/publish/:path*",
destination: "/contracts/publish/:path*",
permanent: false,
},
{
source: "/dashboard/mumbai/publish/:path*",
destination: "/contracts/publish/:path*",
permanent: false,
},
{
source: "/privacy",
destination: "/thirdweb_Privacy_Policy_May_2022.pdf",
permanent: false,
},
{
source: "/tos",
destination: "/Thirdweb_Terms_of_Service.pdf",
permanent: false,
},
{
source: "/contracts/release",
destination: "/contracts/publish",
permanent: false,
},
{
source: "/contracts/release/:path*",
destination: "/contracts/publish/:path*",
permanent: false,
},
{
source: "/release",
destination: "/publish",
permanent: false,
},
{
source: "/release/:path*",
destination: "/publish/:path*",
permanent: false,
},
{
source: "/authentication",
destination: "/auth",
permanent: false,
},
{
source: "/extensions",
destination: "/solidity-sdk",
permanent: false,
},
{
source: "/contractkit",
destination: "/solidity-sdk",
permanent: true,
},
// old (deprecated) routes
{
source:
"/:network/(edition|nft-collection|token|pack|nft-drop|signature-drop|edition-drop|token-drop|split|vote)/:address",
destination: "/:network/:address",
permanent: false,
},
// prebuilt contract deploys
{
source: "/contracts/new/:slug*",
destination: "/explore",
permanent: false,
},
// deployer to non-deployer url
// handled directly in SSR as well
{
source: "/deployer.thirdweb.eth",
destination: "/thirdweb.eth",
permanent: true,
},
{
source: "/deployer.thirdweb.eth/:path*",
destination: "/thirdweb.eth/:path*",
permanent: true,
},
{
source: "/chains",
destination: "/chainlist",
permanent: true,
},
// polygon zkevm beta to non-beta
{
source: "/polygon-zkevm-beta",
destination: "/polygon-zkevm",
permanent: false,
},
];
}
module.exports = redirects;