From c7d025babab50f1f8acd2199d873bec6201d7057 Mon Sep 17 00:00:00 2001 From: mx <33262279+mfahampshire@users.noreply.github.com> Date: Wed, 6 Nov 2024 09:53:49 +0000 Subject: [PATCH] try fix scan redirect failures (#5100) * try fix scan redirect failures * yet more redirects --- documentation/docs/next.config.js | 587 +++++++++++++++++++++++++----- 1 file changed, 490 insertions(+), 97 deletions(-) diff --git a/documentation/docs/next.config.js b/documentation/docs/next.config.js index 080d0afadf..52436b1b05 100644 --- a/documentation/docs/next.config.js +++ b/documentation/docs/next.config.js @@ -43,536 +43,929 @@ const config = { async redirects() { return [ // network docs - // { - // source: "/", - // destination: "/docs", - // basePath: false, - // permanent: true, - // }, { source: "/operators", destination: "docs/operators/introduction", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/operators", destination: "docs/operators/introduction", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers", destination: "/docs/developers", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/architecture/nym-vs-others.html", destination: "/docs/network/architecture/nym-vs-others", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/architecture/traffic-flow.html", destination: "/docs/network/traffic", // testing difference permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/architecture/addressing-system.html", destination: "/docs/network/traffic/addressing-system", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/binaries/pre-built-binaries.html", destination: "/docs/developers/binaries#building-from-source", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/binaries/init-and-config.html", destination: "/docs/developers/binaries#building-from-source", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/binaries/building-nym.html", destination: "/docs/developers/binaries#building-from-source", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/nodes/overview.html ", destination: "/docs/network/architecture/mixnet/nodes", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/wallet/desktop-wallet.html", destination: "https://github.com/nymtech/nym/tree/master/nym-wallet#installation-prerequisites---linux--mac", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/wallet/cli-wallet.html", destination: "/docs/developers/chain/cli-wallet", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/explorers/mixnet-explorer.html", destination: "https://github.com/nymtech/nym/tree/master/explorer#nym-network-explorer", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/nyx/interacting-with-chain.html", destination: "/docs/developers/chain", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/nyx/smart-contracts.html", destination: "/docs/network/architecture/nyx/smart-contracts", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/nyx/mixnet-contract.html", destination: "/docs/network/architecture/nyx/smart-contracts/mixnet-contract", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/nyx/vesting-contract.html", destination: "/docs/network/architecture/nyx/smart-contracts/vesting-contract", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/nyx/rpc-node.html", destination: "/docs/developers/chain/rpc-node", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/nyx/ledger-live.html", destination: "/docs/developers/chain/ledger-live", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/coconut.html", destination: "/docs/network/cryptography/zk-nym", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/nyx/bandwidth-credentials.html", destination: "/docs/network/cryptography/zk-nym", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/tools/nym-cli.html", destination: "/docs/developers/tools/nym-cli", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/coc.html", destination: "/docs/network/coc", permanent: true, - basePath : false, + basePath: false, }, { source: "/docs/licensing.html", destination: "/docs/network/licensing", permanent: true, - basePath : false, + basePath: false, }, // dev docs { source: "/developers/clients-overview.html", destination: "/docs/developers/clients", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/rust.html", destination: "/docs/developers/rust", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/message-types.html", destination: "/docs/developers/rust/mixnet/message-types", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/message-helpers.html", destination: "/docs/developers/rust/mixnet/message-helpers", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/troubleshooting.html", destination: "/docs/developers/rust/mixnet/troubleshooting", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples.html", destination: "/docs/developers/rust/mixnet/examples", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/simple.html", destination: "/docs/developers/rust/mixnet/examples/simple", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/keys.html", destination: "/docs/developers/sdk/rust/examples/keys.html", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/storage.html", destination: "/docs/developers/rust/mixnet/examples/builders/builder-with-storage", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/surbs.html", destination: "/docs/developers/rust/mixnet/examples/surbs", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/custom-network.html", destination: "/docs/developers/rust/mixnet/examples/custom-topology", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/socks.html", destination: "/docs/developers/rust/mixnet/examples/socks", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/split-send.html", destination: "/docs/developers/rust/mixnet/examples/split-send", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/credential.html", destination: "/docs/developers/rust/mixnet", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/rust/examples/cargo.html", destination: "/docs/developers/rust/importing", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/sdk/typescript.html", destination: "/docs/developers/typescript", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/binaries/pre-built-binaries.html", destination: "/docs/developers/binaries#pre-built-binaries", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/binaries/building-nym.html", destination: "/docs/developers/binaries", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/websocket-client.html", destination: "/docs/developers/clients/websocket", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/websocket/setup.html", destination: "/docs/developers/clients/websocket/setup", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/websocket/config.html", destination: "/docs/developers/clients/websocket/config", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/websocket/usage.html", destination: "/docs/developers/clients/websocket/usage", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/websocket/examples.html", destination: "/docs/developers/clients/websocket/examples", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/socks5-client.html", destination: "/docs/developers/clients/socks5", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/socks5/setup.html", destination: "/docs/developers/clients/socks5#client-setup", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/socks5/usage.html", destination: "/docs/developers/clients/socks5#using-your-socks5-client", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/clients/webassembly-client.html", destination: "/docs/developers/clients/webassembly-client", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/tutorials/coming-soon.html", destination: "/docs/developers/rust#", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/integrations/integration-options.html", destination: "/docs/developers/integrations", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/faq/integrations-faq.html", destination: "/docs/developers/integrations", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/coc.html", destination: "/docs/developers/coc", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/licensing.html", destination: "/docs/developers/licensing", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/nymvpn/intro.html", destination: "/docs/developers/archive/nymvpn", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/nymvpn/cli.html", destination: "/docs/developers/nymvpn/cli", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/archive/nym-connect.html", destination: "/docs/developers/archive/nym-connect", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/examples/custom-services.html", destination: "/docs/developers/rust/mixnet/other-examples#services", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/examples/browser-only.html", destination: "/docs/developers/rust/mixnet/other-examples#browser-only", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/examples/using-nrs.html", destination: "/docs/developers/rust/mixnet/other-examples", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/examples/monorepo-examples.html", destination: "/docs/developers/rust/mixnet/other-examples", permanent: true, - basePath : false, + basePath: false, }, { source: "/developers/integrations", destination: "/docs/developers/integrations/payment-integration.html", permanent: true, - basePath : false, + basePath: false, }, - // operators: // specific urls that have changed { source: "/operators/nodes/wallet-preparation.html", - destination: "/docs/operators/nodes/preliminary-steps/wallet-preparation", + destination: + "/docs/operators/nodes/preliminary-steps/wallet-preparation", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/nodes/vps-setup.html", destination: "/docs/operators/nodes/preliminary-steps/vps-setup", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/nodes/proxy-configuration.html", destination: "/docs/operators/nodes/nym-node/configuration/proxy-configuration", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/nodes/bonding.html", destination: "/docs/operators/nodes/nym-node/bonding", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/nodes/nym-api.html", destination: "/docs/operators/nodes/validator-setup/nym-api", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/nodes/nyx-configuration.html", destination: "/docs/operators/nodes/validator-setup/nyx-configuration", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/nodes/manual-upgrade.html", destination: "/docs/operators/nodes/maintenance/manual-upgrade", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/nodes/nymvisor-upgrade.html", destination: "/docs/operators/nodes/maintenance/nymvisor-upgrade", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/testing/performance.html", destination: "/docs/operators/nodes/performance-and-testing", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/testing/gateway-probe.html", - destination: "/docs/operators/nodes/performance-and-testing/gateway-probe", + destination: + "/docs/operators/nodes/performance-and-testing/gateway-probe", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/testing/node-api-check.html", - destination: "/docs/operators/nodes/performance-and-testing/node-api-check", + destination: + "/docs/operators/nodes/performance-and-testing/node-api-check", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/testing/prometheus-grafana.html", destination: "/docs/operators/nodes/performance-and-testing/prometheus-grafana", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/testing/explorenym-scripts.html", destination: "/docs/operators/nodes/performance-and-testing/prometheus-grafana/explorenym-scripts", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/legal/community-counsel.html", destination: "/docs/operators/community-counsel", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/legal/exit-gateway.html", destination: "/docs/operators/community-counsel/exit-gateway", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/legal/isp-list.html", destination: "/docs/operators/community-counsel/isp-list", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/legal/jurisdictions.html", destination: "/docs/operators/community-counsel/jurisdictions", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/legal/swiss.html", destination: "/docs/operators/community-counsel/jurisdictions/swiss", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/legal/united-states.html", - destination: "/docs/operators/community-counsel/jurisdictions/united-states", + destination: + "/docs/operators/community-counsel/jurisdictions/united-states", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/legal/landing-pages.html", destination: "/docs/operators/community-counsel/landing-pages", permanent: true, - basePath : false, + basePath: false, }, { source: "/operators/legal/add-content.html", destination: "/docs/operators/community-counsel/add-content", permanent: true, - basePath : false, + basePath: false, + }, + { + source: "/docs/sdk/rust/rust.html", + destination: "/docs/developers/rust", + permanent: true, + basePath: false, + }, + { + source: "/docs/sdk/typescript.html", + destination: "/docs/developers/typescript", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/changelog.html", + destination: "/docs/operators/changelog", + permanent: true, + basePath: false, + }, + { + source: "/operators/changelog.html", + destination: "/docs/operators/changelog", + permanent: true, + basePath: false, + }, + { + source: "/operators/changelog", + destination: "/docs/operators/changelog", + permanent: true, + basePath: false, + }, + { + source: "/docs/tools/nym-cli", + destination: "/docs/developers/tools/nym-cli", + permanent: true, + basePath: false, + }, + { + source: "/docs/developers/clients/socks5/setup", + destination: "/docs/developers/clients/socks5#client-setup", + permanent: true, + basePath: false, + }, + { + source: "/docs/architecture/network-overview.html", + destination: "/docs/network/architecture", + permanent: true, + basePath: false, + }, + { + source: "/docs/developers/archive/nymvpn/troubleshooting", + destination: "/docs/developers/archive/nymvpn/faq", + permanent: true, + basePath: false, + }, + { + source: "/docs/developers/archive/nymvpn/intro", + destination: "/docs/developers/archive/nymvpn", + permanent: true, + basePath: false, + }, + { + source: "/docs/network/architecture/nyx/smart-contracts/ecash", + destination: "/docs/network/architecture/nyx/smart-contracts/zknym", + permanent: true, + basePath: false, + }, + { + source: "/docs/network/cryptography/tools/nym-cli", + destination: "/docs/developers/tools/nym-cli", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/variables.html", + destination: "/docs/operators/variables", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/testing/performance", + destination: "/docs/operators/nodes/performance-and-testing", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/setup", + destination: "/docs/operators/nodes/nym-node/setup", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/configuration", + destination: "/docs/operators/nodes/nym-node/configuration", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/testing/node-api-check", + destination: + "/docs/operators/nodes/performance-and-testing/node-api-check", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/proxy-configuration", + destination: + "/docs/operators/nodes/nym-node/configuration/proxy-configuration", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/testing/gateway-probe", + destination: + "/docs/operators/nodes/performance-and-testing/gateway-probe", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/legal/isp-list", + destination: "/docs/operators/community-counsel/isp-list", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/vps-setup", + destination: "/docs/operators/nodes/preliminary-steps/vps-setup", + permanent: true, + basePath: false, + }, + { + source: "/docs/binaries/building-nym", + destination: "/docs/developers/binaries#building-nym", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/nym-node/proxy-configuration", + destination: + "/docs/operators/nodes/nym-node/configuration/proxy-configuration", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/nym-node/vps-setup", + destination: "/docs/operators/nodes/preliminary-steps/vps-setup", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/binaries/pre-built-binaries", + destination: "/docs/operators/binaries/pre-built-binaries", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/binaries/building-nym", + destination: "/docs/operators/binaries/building-nym", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/preliminrary-steps/vps-setup", + destination: "/docs/operators/nodes/preliminary-steps/vps-setup", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/perfomance-and-testing/gateway-probe", + destination: + "/docs/operators/nodes/performance-and-testing/gateway-probe", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/binaries/pre-build-binaries", + destination: "/docs/operators/binaries/pre-built-binaries", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/add-content", + destination: "/docs/operators/community-counsel/add-content", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/archive/faq/mixnodes-faq", + destination: "/docs/operators/archive/faq/smoosh-faq", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/legal/exit-gateway", + destination: "/docs/operators/community-counsel/exit-gateway", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/misc/nodes/setup", + destination: "/docs/operators/nodes/nym-node/setup", + permanent: true, + basePath: false, + }, + { + source: "/developers/faq/general-faq.html", + destination: "/docs/operators/faq/general-faq", + permanent: true, + basePath: false, + }, + { + source: "/developers/tutorials/cosmos-service/intro.html", + destination: "/docs/developers/rust#", + permanent: true, + basePath: false, + }, + { + source: "/developers/faq/integrations-faq.html", + destination: "/docs/developers/integrations", + permanent: true, + basePath: false, + }, + { + source: "/developers/nymvpn/cli.html", + destination: "/docs/developers/archive/nymvpn/cli", + permanent: true, + basePath: false, + }, + { + source: "/developers/archive/nym-connect.html", + destination: "/docs/developers/archive/nym-connect", + permanent: true, + basePath: false, + }, + { + source: "/developers/clients/websocket-client.html", + destination: "/docs/developers/clients/websocket", + permanent: true, + basePath: false, + }, + { + source: "/developers/clients/socks5-client.html", + destination: "/docs/developers/clients/socks5", + permanent: true, + basePath: false, + }, + { + source: "/developers/clients/webassembly-client.html", + destination: "/docs/developers/clients/webassembly-client", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/nym-node/nym-node", + destination: "/docs/operators/nodes/nym-node", + permanent: true, + basePath: false, + }, + { + source: "/docs/developers/network/concepts/anonymous-replies", + destination: "/docs/network/concepts/anonymous-replies", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/nodes/nym-node/nym-node", + destination: "/docs/operators/nodes/nym-node", + permanent: true, + basePath: false, + }, + { + source: "/docs/bandwidth-credentials.html", + destination: "/docs/network/cryptography/zk-nym", + permanent: true, + basePath: false, + }, + { + source: "/developers/faq/general-faq.html", + destination: "/docs/developers", + permanent: true, + basePath: false, + }, + { + source: "/operators/faq/mixnodes-faq.html", + destination: "/docs/operators/faq/general-faq", + permanent: true, + basePath: false, + }, + { + source: "/operators/faq/smoosh-faq.html", + destination: "/docs/operators/faq/nym-nodes-faq", + permanent: true, + basePath: false, + }, + { + source: "/operators/legal/exit-gateway.html", + destination: "/docs/operators/community-counsel/exit-gateway", + permanent: true, + basePath: false, + }, + { + source: "/developers/tutorials/cosmos-service/intro.html", + destination: "/docs/developers/rust", + permanent: true, + basePath: false, + }, + { + source: "/developers/faq/integrations-faq.html", + destination: "/docs/developers/integrations", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/testing/gateway-probe.html", + destination: + "/docs/operators/nodes/performance-and-testing/gateway-probe", + permanent: true, + basePath: false, + }, + { + source: "/developers/nymvpn/cli.html", + destination: "/docs/developers/archive/nymvpn/cli", + permanent: true, + basePath: false, + }, + { + source: "/developers/archive/nym-connect.html", + destination: "/docs/developers/archive/nym-connect", + permanent: true, + basePath: false, + }, + { + source: "/operators/nodes/vps-setup.html", + destination: "/docs/operators/nodes/preliminary-steps/vps-setup", + permanent: true, + basePath: false, + }, + { + source: "/operators/nodes/maintenance.html", + destination: "/docs/operators/nodes/maintenance", + permanent: true, + basePath: false, + }, + { + source: "/operators/troubleshooting/vps-isp.html", + destination: "/docs/operators/community-counsel/isp-list", + permanent: true, + basePath: false, + }, + { + source: "/operators/legal/isp-list.html", + destination: "/docs/operators/community-counsel/isp-list", + permanent: true, + basePath: false, + }, + { + source: "/operators/nodes/proxy-configuration.html", + destination: + "/docs/operators/nodes/nym-node/configuration/proxy-configuration", + permanent: true, + basePath: false, + }, + { + source: "/operators/nodes/bonding.html", + destination: "/docs/operators/nodes/nym-node/bonding", + permanent: true, + basePath: false, + }, + { + source: "/operators/sandbox.html", + destination: "/docs/operators/sandbox", + permanent: true, + basePath: false, + }, + { + source: "/developers/clients/websocket-client.html", + destination: "/docs/developers/clients/websocket", + permanent: true, + basePath: false, + }, + { + source: "/developers/clients/socks5-client.html", + destination: "/docs/developers/clients/socks5", + permanent: true, + basePath: false, + }, + { + source: "/developers/clients/webassembly-client.html", + destination: "/docs/developers/clients/webassembly-client", + permanent: true, + basePath: false, + }, + { + source: "/docs/operators/landing-pages", + destination: "/docs/operators/community-counsel/landing-pages", + permanent: true, + basePath: false, }, - // Change the basePath to /docs { source: "/",