From 40b50871575343852ac6d0eb66f00fa20354ed94 Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Sat, 21 Mar 2026 11:59:16 +0100 Subject: [PATCH 01/10] fix: disable VitePress framework preset for nox-protocol rewrite --- vercel.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vercel.json b/vercel.json index 1f71e96..e7f0fd3 100644 --- a/vercel.json +++ b/vercel.json @@ -1,4 +1,7 @@ { + "framework": null, + "buildCommand": "npm run build", + "outputDirectory": ".vitepress/dist", "cleanUrls": true, "rewrites": [ { From 1c43cac698dc40f858ec56abfd422876eaeec35d Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Sat, 21 Mar 2026 12:29:11 +0100 Subject: [PATCH 02/10] feat: refresh error --- src/components/HomePage.vue | 10 ++++++++++ vercel.json | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index 486b251..e84f9c6 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -8,6 +8,13 @@ import helloWorldIcon from '@/assets/icons/hello-world.svg'; import teeIcon from '@/assets/icons/tee.svg'; import govIcon from '@/assets/icons/gov.svg'; +function navigate(event: MouseEvent, link: string) { + if (link.startsWith('/nox-protocol')) { + event.preventDefault(); + window.location.href = link; + } +} + const protocolCards = [ { icon: noxIcon, @@ -110,6 +117,7 @@ const dappFeatures = [ :key="card.title" :href="card.link" class="protocol-card" + @click="navigate($event, card.link)" >
@@ -135,6 +143,7 @@ const dappFeatures = [ :key="feature.title" :href="feature.link" class="feature-card" + @click="navigate($event, feature.link)" >
@@ -160,6 +169,7 @@ const dappFeatures = [ :key="feature.title" :href="feature.link" class="feature-card" + @click="navigate($event, feature.link)" >
diff --git a/vercel.json b/vercel.json index e7f0fd3..64bb3a8 100644 --- a/vercel.json +++ b/vercel.json @@ -10,6 +10,10 @@ } ], "redirects": [ + { + "source": "/nox-protocol", + "destination": "/" + }, { "source": "/robots.txt", "destination": "/robots-prod.txt", From eeea8de700bd1c8f6827c5471b2ef965fddc3a73 Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Sat, 21 Mar 2026 12:36:54 +0100 Subject: [PATCH 03/10] fix: rewrite --- vercel.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vercel.json b/vercel.json index 64bb3a8..5005721 100644 --- a/vercel.json +++ b/vercel.json @@ -5,15 +5,15 @@ "cleanUrls": true, "rewrites": [ { - "source": "/nox-protocol/:path*", - "destination": "https://documentation-yi1w.vercel.app/nox-protocol/:path*" + "source": "/nox-protocol", + "destination": "https://documentation-yi1w.vercel.app/nox-protocol/" + }, + { + "source": "/nox-protocol/:path+", + "destination": "https://documentation-yi1w.vercel.app/nox-protocol/:path+" } ], "redirects": [ - { - "source": "/nox-protocol", - "destination": "/" - }, { "source": "/robots.txt", "destination": "/robots-prod.txt", From 924aa0cb7feba70783961926763e7472570a0977 Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Sat, 21 Mar 2026 14:19:58 +0100 Subject: [PATCH 04/10] fix: use absolute URLs for nox-protocol links to avoid SPA flash --- src/components/HomePage.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index e84f9c6..dea3f79 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -8,11 +8,13 @@ import helloWorldIcon from '@/assets/icons/hello-world.svg'; import teeIcon from '@/assets/icons/tee.svg'; import govIcon from '@/assets/icons/gov.svg'; -function navigate(event: MouseEvent, link: string) { +function toHref(link: string) { if (link.startsWith('/nox-protocol')) { - event.preventDefault(); - window.location.href = link; + return typeof window !== 'undefined' + ? window.location.origin + link + : link; } + return link; } const protocolCards = [ @@ -115,9 +117,8 @@ const dappFeatures = [
@@ -141,9 +142,8 @@ const dappFeatures = [
@@ -167,9 +167,8 @@ const dappFeatures = [
From 331ec69145d3b164b03be6baf7ec4bd7844ee3fd Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Sat, 21 Mar 2026 14:22:50 +0100 Subject: [PATCH 05/10] fix: format --- src/components/HomePage.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index dea3f79..307f0af 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -10,9 +10,7 @@ import govIcon from '@/assets/icons/gov.svg'; function toHref(link: string) { if (link.startsWith('/nox-protocol')) { - return typeof window !== 'undefined' - ? window.location.origin + link - : link; + return typeof window !== 'undefined' ? window.location.origin + link : link; } return link; } From 45606e7bda32b0c411a62bde96581ea162fd229f Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Sat, 21 Mar 2026 14:42:23 +0100 Subject: [PATCH 06/10] feat: fix --- src/components/HomePage.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index 307f0af..7a7eb0c 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -8,11 +8,8 @@ import helloWorldIcon from '@/assets/icons/hello-world.svg'; import teeIcon from '@/assets/icons/tee.svg'; import govIcon from '@/assets/icons/gov.svg'; -function toHref(link: string) { - if (link.startsWith('/nox-protocol')) { - return typeof window !== 'undefined' ? window.location.origin + link : link; - } - return link; +function goToNox(link: string) { + window.location.assign(link); } const protocolCards = [ @@ -115,8 +112,9 @@ const dappFeatures = [
@@ -140,8 +138,9 @@ const dappFeatures = [
@@ -165,8 +164,9 @@ const dappFeatures = [
From c98d7290e4f744f37fdfa2391ecf9addd1657f0f Mon Sep 17 00:00:00 2001 From: Le-Caignec Date: Sat, 21 Mar 2026 17:31:07 +0100 Subject: [PATCH 07/10] try to fix 404 issue --- nox-docs | 1 + src/components/HomePage.vue | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) create mode 160000 nox-docs diff --git a/nox-docs b/nox-docs new file mode 160000 index 0000000..3afdc85 --- /dev/null +++ b/nox-docs @@ -0,0 +1 @@ +Subproject commit 3afdc85864085bc8e11d04cbfd7bb3044a60af6c diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index 7a7eb0c..cbd52d7 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -1,4 +1,5 @@