From 290b9db72ebe7acb74235e1ee59d24eb73a0c4d2 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Tue, 28 Apr 2026 13:59:42 -0700 Subject: [PATCH] Gate pair route fallback to hosted static app - Avoid showing the hosted pairing flow outside the static app - Keep the existing error boundary behavior for local builds --- apps/web/src/routes/__root.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsx index 7c38d77853..d4ba56f3c5 100644 --- a/apps/web/src/routes/__root.tsx +++ b/apps/web/src/routes/__root.tsx @@ -94,6 +94,9 @@ export const Route = createRootRouteWithContext<{ if (location.pathname === "/pair") { throw error; } + if (!isHostedStaticApp(new URL(window.location.href))) { + throw error; + } await waitForSavedEnvironmentRegistryHydration(); return {