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
This commit is contained in:
Julius Marminge committed 2026-04-28 13:59:42 -07:00
1 parent e4b6dd4efa
commit 290b9db72e
1 file changed
+3
+3
View File
@@ -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 {