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:
1 parent
e4b6dd4efa
commit
290b9db72e
1 file changed
+3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user