@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
tsx 14 lines 501 Bytes
Raw
1 import { createFileRoute, redirect } from "@tanstack/react-router";
2
3 import { hasCloudPublicConfig } from "../cloud/publicConfig";
4 import { ApproveAgentSurface } from "../components/auth/ApproveAgentSurface";
5 import { isHostedStaticApp } from "../hostedPairing";
6
7 export const Route = createFileRoute("/approve-agent")({
8 beforeLoad: () => {
9 if (!isHostedStaticApp() || !hasCloudPublicConfig()) {
10 throw redirect({ to: "/", replace: true });
11 }
12 },
13 component: ApproveAgentSurface,
14 });