Skip to content

Commit fa7a8b9

Browse files
committed
fix build issues
1 parent 4f8d0de commit fa7a8b9

1 file changed

Lines changed: 17 additions & 230 deletions

File tree

docusaurus.config.ts

Lines changed: 17 additions & 230 deletions
Original file line numberDiff line numberDiff line change
@@ -250,42 +250,11 @@ const config: Config = {
250250
"@docusaurus/plugin-client-redirects",
251251
{
252252
redirects: [
253-
{
254-
from: "/examples/productionexamples",
255-
to: "/examples",
256-
},
257253
{
258254
from: "/get-started",
259255
to: "/quick-start",
260256
},
261-
{
262-
from: "/developing-with-web3auth/understand-sdk",
263-
to: "/quick-start",
264-
},
265-
{
266-
from: "/developing-with-web3auth/",
267-
to: "/quick-start",
268-
},
269-
{
270-
from: "/sdk/web/choosesdk/",
271-
to: "/sdk/pnp/web/",
272-
},
273-
{
274-
from: "/sdk/android/setting-up",
275-
to: "/sdk/pnp/android/",
276-
},
277-
{
278-
from: "/sdk/ios/setting-up",
279-
to: "/sdk/pnp/ios/",
280-
},
281-
{
282-
from: "/sdk/flutter/setting-up",
283-
to: "/sdk/pnp/flutter/",
284-
},
285-
{
286-
from: "/product/wallet-ecosystems",
287-
to: "/features/ecosystem-wallets",
288-
},
257+
289258
{
290259
from: "/features/blockchain-agnostic",
291260
to: "/features/compatible-blockchains",
@@ -294,194 +263,27 @@ const config: Config = {
294263
from: "/features/wallet-aggregation",
295264
to: "/features/external-wallets",
296265
},
297-
{
298-
from: "/sdk/react-native/choose-workflows",
299-
to: "/sdk/pnp/react-native/",
300-
},
301-
{
302-
from: "/overview/what-is-web3auth",
303-
to: "/what-is-web3auth",
304-
},
305-
{
306-
from: "/overview/how-web3auth-works",
307-
to: "/how-web3auth-works",
308-
},
309-
{
310-
from: "/overview/key-management/",
311-
to: "/infrastructure/",
312-
},
313-
{
314-
from: "/overview/key-management/technical-architecture/",
315-
to: "/infrastructure/",
316-
},
317-
{
318-
from: "/infrastructure/key-management",
319-
to: "/infrastructure/",
320-
},
321-
{
322-
from: "/infrastructure/technical-architecture/",
323-
to: "/infrastructure/",
324-
},
266+
325267
{
326268
from: "/developer-dashboard/",
327269
to: "/dashboard-setup/",
328270
},
329-
{
330-
from: "/developer-dashboard/get-client-id",
331-
to: "/dashboard-setup/projects-and-analytics",
332-
},
333-
{
334-
from: "/developer-dashboard/enable-interoperability",
335-
to: "/dashboard-setup/enable-interoperability",
336-
},
337-
{
338-
from: "/developer-dashboard/setup-custom-authentication",
339-
to: "/dashboard-setup/setup-custom-authentication",
340-
},
341-
{
342-
from: "/developer-dashboard/billing-and-user-stats",
343-
to: "/dashboard-setup/billing-and-usage",
344-
},
271+
345272
{
346273
from: "/customauth",
347274
to: "/auth-provider-setup/",
348275
},
349-
{
350-
from: "/customauth/verifiers",
351-
to: "/auth-provider-setup/verifiers",
352-
},
276+
353277
{
354278
from: "/troubleshooting/different-wallet-address-issue",
355279
to: "/troubleshooting/different-private-key",
356280
},
281+
357282
{
358-
from: "/connect-blockchain/polygon/",
359-
to: "/connect-blockchain/evm/polygon/",
360-
},
361-
{
362-
from: "/connect-blockchain/base/",
363-
to: "/connect-blockchain/evm/base/",
364-
},
365-
{
366-
from: "/connect-blockchain/bnb/",
367-
to: "/connect-blockchain/evm/bnb/",
368-
},
369-
{
370-
from: "/connect-blockchain/avalanche/",
371-
to: "/connect-blockchain/evm/avalanche/",
372-
},
373-
{
374-
from: "/connect-blockchain/arbitrum/",
375-
to: "/connect-blockchain/evm/arbitrum/",
376-
},
377-
{
378-
from: "/connect-blockchain/optimism/",
379-
to: "/connect-blockchain/evm/optimism/",
380-
},
381-
{
382-
from: "/connect-blockchain/cronos/",
383-
to: "/connect-blockchain/evm/cronos/",
384-
},
385-
{
386-
from: "/connect-blockchain/harmony/",
387-
to: "/connect-blockchain/evm/harmony/",
388-
},
389-
{
390-
from: "/connect-blockchain/celo/",
391-
to: "/connect-blockchain/evm/celo/",
392-
},
393-
{
394-
from: "/connect-blockchain/moonbeam/",
395-
to: "/connect-blockchain/evm/moonbeam/",
396-
},
397-
{
398-
from: "/connect-blockchain/moonriver/",
399-
to: "/connect-blockchain/evm/moonriver/",
400-
},
401-
{
402-
from: "/connect-blockchain/klaytn/",
403-
to: "/connect-blockchain/evm/klaytn/",
404-
},
405-
{
406-
from: "/connect-blockchain/flare/",
407-
to: "/connect-blockchain/evm/flare/",
408-
},
409-
{
410-
from: "/connect-blockchain/songbird/",
411-
to: "/connect-blockchain/evm/songbird/",
412-
},
413-
{
414-
from: "/connect-blockchain/skale/",
415-
to: "/connect-blockchain/evm/skale/",
416-
},
417-
{
418-
from: "/connect-blockcahin/tron/",
419-
to: "/connect-blockchain/evm/tron/web",
420-
},
421-
{
422-
from: "/connect-blockchain/starkex",
423-
to: "/connect-blockchain/other/starkex",
424-
},
425-
{
426-
from: "/connect-blockchain/starknet",
427-
to: "/connect-blockchain/other/starknet",
428-
},
429-
{
430-
from: "/connect-blockchain/tezos",
431-
to: "/connect-blockchain/other/tezos",
432-
},
433-
{
434-
from: "/connect-blockchain/algorand",
435-
to: "/connect-blockchain/other/algorand",
436-
},
437-
{
438-
from: "/connect-blockchain/immutablex",
439-
to: "/connect-blockchain/other/immutablex",
440-
},
441-
{
442-
from: "/connect-blockchain/aptos",
443-
to: "/connect-blockchain/other/aptos",
444-
},
445-
{
446-
from: "/connect-blockchain/cosmos",
447-
to: "/connect-blockchain/other/cosmos",
448-
},
449-
{
450-
from: "/connect-blockchain/other/near",
451-
to: "/connect-blockchain/near/",
452-
},
453-
{
454-
from: "/connect-blockchain/polkadot",
455-
to: "/connect-blockchain/other/polkadot",
456-
},
457-
{
458-
from: "/connect-blockchain/polymesh",
459-
to: "/connect-blockchain/other/polymesh",
460-
},
461-
{
462-
from: "/connect-blockchain/sui",
463-
to: "/connect-blockchain/other/sui",
464-
},
465-
{
466-
from: "/user-flow",
467-
to: "/features/mfa",
468-
},
469-
{
470-
from: "/features/smart-accounts",
471-
to: "/features/account-abstraction",
472-
},
473-
{
474-
from: "/features/nft-services",
475-
to: "/features/nft-minting",
476-
},
477-
{
478-
from: "/pnp/features/connect-external-wallets",
479-
to: "/features/external-wallets",
480-
},
481-
{
482-
from: "/pnp/features/dapp-share",
483-
to: "/features/mfa",
283+
to: "/features/smart-accounts",
284+
from: "/features/account-abstraction",
484285
},
286+
485287
{
486288
from: "/pnp/going-live",
487289
to: "/resources/checklist",
@@ -510,14 +312,6 @@ const config: Config = {
510312
from: "/product-fit/pnp-vs-core-kit",
511313
to: "/product-fit",
512314
},
513-
{
514-
from: "/product-fit/partner-products",
515-
to: "/features/ecosystem-wallets",
516-
},
517-
{
518-
from: "/product-fit/enterprise",
519-
to: "/features/ecosystem-wallets",
520-
},
521315
{
522316
from: "/product-fit/web3auth-for-wallets",
523317
to: "/product/#web3auth-for-wallets",
@@ -539,34 +333,27 @@ const config: Config = {
539333
// Only create redirects if the path matches certain patterns
540334
if (
541335
existingPath.includes("/sdk/") ||
542-
existingPath.includes("/sdk/sfa/sfa-js/") ||
543-
existingPath.includes("/sdk/mpc-core-kit/mpc-core-kit-js/") ||
544336
existingPath.includes("/guides/") ||
545337
existingPath.includes("/features/") ||
546338
existingPath.includes("/product/")
547339
) {
548340
return [
549341
existingPath.replace("/sdk", "/api-reference"),
550342
existingPath.replace("/sdk", "/sdk-reference"),
551-
existingPath.replace("/sdk/sfa/sfa-js/", "/sdk/sfa/sfa-web/"),
552343
existingPath.replace(
553344
"/sdk/mpc-core-kit/mpc-core-kit-js/",
554345
"/sdk/core-kit/mpc-core-kit/",
555346
),
347+
existingPath.replace("/sdk/pnp/web/", "/sdk/web/"),
348+
existingPath.replace("/sdk/pnp/android/", "/sdk/mobile/pnp/android/"),
349+
existingPath.replace("/sdk/pnp/ios/", "/sdk/mobile/pnp/ios/"),
350+
existingPath.replace("/sdk/pnp/flutter/", "/sdk/mobile/pnp/flutter/"),
351+
existingPath.replace("/sdk/pnp/react-native/", "/sdk/mobile/pnp/react-native/"),
352+
existingPath.replace("/sdk/sfa/sfa-android/", "/sdk/mobile/sfa/android/"),
353+
existingPath.replace("/sdk/sfa/sfa-ios/", "/sdk/mobile/sfa/ios/"),
354+
existingPath.replace("/sdk/sfa/sfa-flutter/", "/sdk/mobile/sfa/flutter/"),
355+
existingPath.replace("/sdk/sfa/sfa-react-native/", "/sdk/mobile/sfa/react-native/"),
556356
existingPath.replace("/guides/", "/content-hub/guides/"),
557-
existingPath.replace("/sdk/pnp/web/providers/", "/sdk/providers/"),
558-
existingPath.replace("/sdk/pnp/web/wallet-services/", "/sdk/wallet-services/"),
559-
existingPath.replace("/features/whitelabel", "/pnp/features/whitelabel/"),
560-
existingPath.replace("/product/core-kit", "/core-kit/"),
561-
existingPath.replace("/product/pnp", "/pnp/"),
562-
existingPath.replace(
563-
"/connect-blockchain/evm/astar-zkyoto/",
564-
"/connect-blockchain/evm/zkyoto/",
565-
),
566-
existingPath.replace(
567-
"/connect-blockchain/evm/astar-zkevm/",
568-
"/connect-blockchain/evm/zkevm/",
569-
),
570357
].filter((redirect) => redirect !== existingPath); // Remove any redirects that point to the same path
571358
}
572359
return []; // Return empty array for paths that don't need redirects

0 commit comments

Comments
 (0)