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
| 1 | import { createFileRoute, redirect } from "@tanstack/react-router"; |
| 2 | |
| 3 | import { connectCliAuthRoutesEnabled } from "../cloud/connectCliAuth"; |
| 4 | import { ConnectCliAuthorizeSurface } from "../components/cloud/ConnectCliAuthSurface"; |
| 5 | |
| 6 | export const Route = createFileRoute("/connect")({ |
| 7 | beforeLoad: () => { |
| 8 | if (!connectCliAuthRoutesEnabled()) { |
| 9 | throw redirect({ to: "/", replace: true }); |
| 10 | } |
| 11 | }, |
| 12 | component: ConnectCliAuthorizeSurface, |
| 13 | }); |