From 6d14a8f79f03963002663b5d96d6d4a6b82c603f Mon Sep 17 00:00:00 2001 From: Derek <256792747+decofe@users.noreply.github.com> Date: Fri, 26 Jun 2026 22:17:05 +0000 Subject: [PATCH] Redirect direct docs domain in browser --- src/pages/_layout.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx index cfa92b03..02394aea 100644 --- a/src/pages/_layout.tsx +++ b/src/pages/_layout.tsx @@ -4,6 +4,11 @@ const normalizeProxiedRscFetch = ` (() => { if (window.__tempoNormalizeProxiedRscFetch) return; window.__tempoNormalizeProxiedRscFetch = true; + if (window.location.hostname === 'docs.tempo.xyz') { + const suffix = window.location.pathname === '/' ? '' : window.location.pathname; + window.location.replace('https://tempo.xyz/developers' + suffix + window.location.search + window.location.hash); + return; + } const originalFetch = window.fetch.bind(window); window.fetch = (input, init) => { const url = typeof input === 'string'