Skip to content

Commit a8e64a5

Browse files
committed
Add redirects for services docs
1 parent bd571d7 commit a8e64a5

2 files changed

Lines changed: 144 additions & 1 deletion

File tree

.cursor/rules/product-infura.mdc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ When MetaMask product docs need to reference Infura:
1616
- Do not recreate Infura content under `services/` or `developer-tools/dashboard/` in this repository.
1717
- The faucet remains on MetaMask docs at `/developer-tools/faucet/`.
1818

19-
Cross-domain redirects in `vercel.json` send legacy `/services/*` and `/developer-tools/dashboard/*` URLs to docs.infura.io.
19+
Cross-domain redirects in `vercel.json` send legacy `/services/*` and `/developer-tools/dashboard/*`
20+
URLs to `https://docs.infura.io/`. List specific rules before the catch-all fallbacks; map renamed
21+
paths (for example `/services/gas-api/` → `https://docs.infura.io/reference/gas-api/`). The faucet
22+
stays on MetaMask docs at `/developer-tools/faucet/` and is not redirected.

vercel.json

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,151 @@
5151
}
5252
],
5353
"redirects": [
54+
{
55+
"source": "/services/get-started/",
56+
"destination": "https://docs.infura.io/get-started/infura/",
57+
"permanent": true
58+
},
59+
{
60+
"source": "/services/how-to/",
61+
"destination": "https://docs.infura.io/how-to/avoid-rate-limiting/",
62+
"permanent": true
63+
},
64+
{
65+
"source": "/services/how-to/use-ipfs/access-ipfs-content/",
66+
"destination": "https://docs.infura.io/how-to/use-ipfs/access-ipfs-content/dedicated-gateways/",
67+
"permanent": true
68+
},
69+
{
70+
"source": "/services/concepts/",
71+
"destination": "https://docs.infura.io/concepts/failover-protection/",
72+
"permanent": true
73+
},
74+
{
75+
"source": "/services/tutorials/",
76+
"destination": "https://docs.infura.io/tutorials/ethereum/authenticate-with-jwt/",
77+
"permanent": true
78+
},
79+
{
80+
"source": "/services/tutorials/ethereum/",
81+
"destination": "https://docs.infura.io/tutorials/ethereum/authenticate-with-jwt/",
82+
"permanent": true
83+
},
84+
{
85+
"source": "/services/tutorials/layer-2-networks/deploy-an-nft-smart-contract-on-palm/",
86+
"destination": "https://docs.infura.io/",
87+
"permanent": true
88+
},
89+
{
90+
"source": "/services/tutorials/layer-2-networks/",
91+
"destination": "https://docs.infura.io/tutorials/layer-2-networks/send-a-transaction/",
92+
"permanent": true
93+
},
94+
{
95+
"source": "/services/reference/",
96+
"destination": "https://docs.infura.io/reference/arbitrum/",
97+
"permanent": true
98+
},
99+
{
100+
"source": "/services/gas-api/",
101+
"destination": "https://docs.infura.io/reference/gas-api/",
102+
"permanent": true
103+
},
104+
{
105+
"source": "/services/gas-api/quickstart/",
106+
"destination": "https://docs.infura.io/reference/gas-api/quickstart/",
107+
"permanent": true
108+
},
109+
{
110+
"source": "/services/gas-api/supported-networks/",
111+
"destination": "https://docs.infura.io/get-started/endpoints/",
112+
"permanent": true
113+
},
114+
{
115+
"source": "/services/gas-api/api-reference/",
116+
"destination": "https://docs.infura.io/reference/gas-api/api-reference/",
117+
"permanent": true
118+
},
119+
{
120+
"source": "/services/gas-api/api-reference/basefeehistory/",
121+
"destination": "https://docs.infura.io/reference/gas-api/api-reference/basefeehistory/",
122+
"permanent": true
123+
},
124+
{
125+
"source": "/services/gas-api/api-reference/basefeepercentile/",
126+
"destination": "https://docs.infura.io/reference/gas-api/api-reference/basefeepercentile/",
127+
"permanent": true
128+
},
129+
{
130+
"source": "/services/gas-api/api-reference/busythreshold/",
131+
"destination": "https://docs.infura.io/reference/gas-api/api-reference/busythreshold/",
132+
"permanent": true
133+
},
134+
{
135+
"source": "/services/reference/:path*/json-rpc-methods/eth_sign/",
136+
"destination": "https://docs.infura.io/get-started/infura/",
137+
"permanent": true
138+
},
139+
{
140+
"source": "/services/reference/:path*/json-rpc-methods/eth_sendtransaction/",
141+
"destination": "https://docs.infura.io/get-started/infura/",
142+
"permanent": true
143+
},
144+
{
145+
"source": "/services/reference/:path*/json-rpc-methods/eth_coinbase/",
146+
"destination": "https://docs.infura.io/get-started/infura/",
147+
"permanent": true
148+
},
149+
{
150+
"source": "/services/reference/swellchain/",
151+
"destination": "https://docs.infura.io/reference/arbitrum/",
152+
"permanent": true
153+
},
154+
{
155+
"source": "/services/reference/swellchain/:path*/",
156+
"destination": "https://docs.infura.io/reference/arbitrum/",
157+
"permanent": true
158+
},
159+
{
160+
"source": "/services/api/learn/pricing/",
161+
"destination": "https://docs.infura.io/get-started/pricing/credit-cost/",
162+
"permanent": true
163+
},
164+
{
165+
"source": "/services/reference/:path*/eth_newpendingtransactionfilter/",
166+
"destination": "https://docs.infura.io/reference/:path*/",
167+
"permanent": true
168+
},
169+
{
170+
"source": "/services/reference/ethereum/how-to/secure-a-project/project-secret/",
171+
"destination": "https://docs.infura.io/dashboard/how-to/secure-an-api/api-key-secret/",
172+
"permanent": true
173+
},
174+
{
175+
"source": "/services/reference/ipfs/how-to/:path*/",
176+
"destination": "https://docs.infura.io/how-to/use-ipfs/:path*/",
177+
"permanent": true
178+
},
54179
{
55180
"source": "/services/:path*",
56181
"destination": "https://docs.infura.io/:path*",
57182
"permanent": true
58183
},
184+
{
185+
"source": "/developer-tools/dashboard/how-to/project-sharing/",
186+
"destination": "https://docs.infura.io/dashboard/",
187+
"permanent": true
188+
},
189+
{
190+
"source": "/developer-tools/dashboard/how-to/secure-an-api/",
191+
"destination": "https://docs.infura.io/dashboard/how-to/secure-an-api/api-key-secret/",
192+
"permanent": true
193+
},
194+
{
195+
"source": "/developer-tools/dashboard/how-to/",
196+
"destination": "https://docs.infura.io/dashboard/",
197+
"permanent": true
198+
},
59199
{
60200
"source": "/developer-tools/dashboard/:path*",
61201
"destination": "https://docs.infura.io/dashboard/:path*",

0 commit comments

Comments
 (0)