Skip to content

Commit 72a78e4

Browse files
committed
fix build issues
1 parent 60d3bc5 commit 72a78e4

File tree

2 files changed

+1
-274
lines changed

2 files changed

+1
-274
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const config: Config = {
9393
{
9494
label: "SDKs",
9595
type: "dropdown",
96-
to: "/sdk",
96+
to: "https://docs.metamask.io/embedded-wallets/sdk/",
9797
position: "left",
9898
items: [
9999
{
@@ -193,144 +193,6 @@ const config: Config = {
193193
} satisfies Preset.Options,
194194
],
195195
],
196-
plugins: [
197-
[
198-
"@docusaurus/plugin-client-redirects",
199-
{
200-
redirects: [
201-
{
202-
from: "/get-started",
203-
to: "/quick-start",
204-
},
205-
206-
{
207-
from: "/features/blockchain-agnostic",
208-
to: "/features/compatible-blockchains",
209-
},
210-
{
211-
from: "/features/wallet-aggregation",
212-
to: "/features/external-wallets",
213-
},
214-
215-
{
216-
from: "/developer-dashboard/",
217-
to: "/dashboard/",
218-
},
219-
{
220-
from: "/dashboard-setup/",
221-
to: "/dashboard/",
222-
},
223-
{
224-
from: "/developer-dashboard/get-client-id",
225-
to: "/dashboard/",
226-
},
227-
{
228-
from: "/developer-dashboard/enable-interoperability",
229-
to: "/dashboard/",
230-
},
231-
{
232-
from: "/developer-dashboard/setup-custom-authentication",
233-
to: "/dashboard/configure-connections",
234-
},
235-
{
236-
from: "/developer-dashboard/billing-and-user-stats",
237-
to: "/dashboard/create-new-project",
238-
},
239-
{
240-
from: "/customauth",
241-
to: "/authentication/",
242-
},
243-
{
244-
from: "/customauth/verifiers",
245-
to: "/authentication/",
246-
},
247-
{
248-
from: "/troubleshooting/different-wallet-address-issue",
249-
to: "/troubleshooting/different-private-key",
250-
},
251-
{
252-
to: "/features/smart-accounts",
253-
from: "/features/account-abstraction",
254-
},
255-
{
256-
from: "/pnp/going-live",
257-
to: "/resources/checklist",
258-
},
259-
{
260-
from: "/core-kit/going-live",
261-
to: "/resources/checklist",
262-
},
263-
{
264-
from: "/authentication/federated-identity-providers",
265-
to: "/authentication/custom-connections/auth0",
266-
},
267-
{
268-
from: "/authentication/byo-jwt-providers",
269-
to: "/authentication/custom-connections/custom-jwt",
270-
},
271-
{
272-
from: "/product/product-fit",
273-
to: "/product-fit",
274-
},
275-
{
276-
from: "/product/core-kit",
277-
to: "/product/mpc-core-kit",
278-
},
279-
{
280-
from: "/product-fit/pnp-vs-core-kit",
281-
to: "/product-fit",
282-
},
283-
{
284-
from: "/product-fit/web3auth-for-wallets",
285-
to: "/product/#web3auth-for-wallets",
286-
},
287-
{
288-
from: "/product-fit/web3auth-for-dapps",
289-
to: "/product/#web3auth-for-dapps",
290-
},
291-
{
292-
from: "/pnp/features/custom-authentication",
293-
to: "/features/custom-authentication",
294-
},
295-
{
296-
from: "/pnp/features/mfa",
297-
to: "/features/mfa",
298-
},
299-
],
300-
createRedirects(existingPath) {
301-
// Only create redirects if the path matches certain patterns
302-
if (
303-
existingPath.includes("/sdk/") ||
304-
existingPath.includes("/guides/") ||
305-
existingPath.includes("/features/") ||
306-
existingPath.includes("/product/") ||
307-
existingPath.includes("/legal/")
308-
) {
309-
return [
310-
existingPath.replace("/sdk", "/api-reference"),
311-
existingPath.replace("/sdk", "/sdk-reference"),
312-
existingPath.replace(
313-
"/sdk/mpc-core-kit/mpc-core-kit-js/",
314-
"/sdk/core-kit/mpc-core-kit/",
315-
),
316-
existingPath.replace("/sdk/pnp/web/", "/sdk/web/"),
317-
existingPath.replace("/sdk/pnp/android/", "/sdk/mobile/pnp/android/"),
318-
existingPath.replace("/sdk/pnp/ios/", "/sdk/mobile/pnp/ios/"),
319-
existingPath.replace("/sdk/pnp/flutter/", "/sdk/mobile/pnp/flutter/"),
320-
existingPath.replace("/sdk/pnp/react-native/", "/sdk/mobile/pnp/react-native/"),
321-
existingPath.replace("/sdk/sfa/sfa-android/", "/sdk/mobile/sfa/android/"),
322-
existingPath.replace("/sdk/sfa/sfa-ios/", "/sdk/mobile/sfa/ios/"),
323-
existingPath.replace("/sdk/sfa/sfa-flutter/", "/sdk/mobile/sfa/flutter/"),
324-
existingPath.replace("/sdk/sfa/sfa-react-native/", "/sdk/mobile/sfa/react-native/"),
325-
existingPath.replace("/guides/", "/content-hub/guides/"),
326-
existingPath.replace("/legal/", "/change-of-ownership"),
327-
].filter((redirect) => redirect !== existingPath); // Remove any redirects that point to the same path
328-
}
329-
return []; // Return empty array for paths that don't need redirects
330-
},
331-
},
332-
],
333-
],
334196
stylesheets: [
335197
{
336198
href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",

llms.txt

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)