diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index 77511f0..0e9ce50 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -11,12 +11,12 @@ import govIcon from '@/assets/icons/gov.svg'; const router = useRouter(); -function isNoxLink(link: string) { - return link.startsWith('/nox-protocol'); +function isExternalLink(link: string) { + return link.startsWith('https://'); } function handleCardClick(link: string) { - if (isNoxLink(link)) { + if (isExternalLink(link)) { window.location.href = link; } else { router.go(link); @@ -32,8 +32,8 @@ const protocolCards = [ "I'm a Solidity developer and I want to build a confidential smart contract.", description: 'Nox is a privacy layer that empowers smart contracts with confidential computation. Encrypted types are executed inside Trusted Execution Environments (TEE), composable with DeFi, without ever exposing plaintext on-chain.', - link: '/nox-protocol/getting-started/welcome', - external: false, + link: 'https://docs.noxprotocol.io/', + external: true, }, { icon: pocoIcon, @@ -53,19 +53,19 @@ const financialFeatures = [ icon: ctokenIcon, title: 'Confidential Token', description: 'Transform any ERC-20 into a confidential asset.', - link: '/nox-protocol/guides/build-confidential-tokens/intro', + link: 'https://docs.noxprotocol.io/guides/build-confidential-tokens/intro', }, { icon: smartContractsIcon, title: 'Confidential Smart Contracts', description: 'Write standard Solidity contracts using the Nox Library.', - link: '/nox-protocol/guides/build-confidential-smart-contracts/intro', + link: 'https://docs.noxprotocol.io/guides/build-confidential-smart-contracts/intro', }, { icon: helloWorldIcon, title: 'Nox Hello World', description: 'Learn how to build on Nox with the Hello World guide.', - link: '/nox-protocol/getting-started/hello-world', + link: 'https://docs.noxprotocol.io/getting-started/hello-world', }, ]; @@ -127,7 +127,7 @@ const dappFeatures = [ @@ -154,7 +154,7 @@ const dappFeatures = [ @@ -180,7 +180,7 @@ const dappFeatures = [ diff --git a/vercel.json b/vercel.json index 5005721..88f5ded 100644 --- a/vercel.json +++ b/vercel.json @@ -3,17 +3,17 @@ "buildCommand": "npm run build", "outputDirectory": ".vitepress/dist", "cleanUrls": true, - "rewrites": [ + "redirects": [ { - "source": "/nox-protocol", - "destination": "https://documentation-yi1w.vercel.app/nox-protocol/" + "source": "/nox-protocol/:path+", + "destination": "https://docs.noxprotocol.io/:path+", + "permanent": true }, { - "source": "/nox-protocol/:path+", - "destination": "https://documentation-yi1w.vercel.app/nox-protocol/:path+" - } - ], - "redirects": [ + "source": "/nox-protocol", + "destination": "https://docs.noxprotocol.io/", + "permanent": true + }, { "source": "/robots.txt", "destination": "/robots-prod.txt",