diff options
| author | Jay V <[email protected]> | 2025-08-28 14:12:31 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-08-28 14:12:31 -0400 |
| commit | eff50c0aab254c96966d94599c882a5956c73a44 (patch) | |
| tree | 327c2b512bc63d860310ebb180aa95dd3c80e5fc /cloud/app/src | |
| parent | 02e014b0a0e2917380aca8efedba1439708f1933 (diff) | |
| download | opencode-eff50c0aab254c96966d94599c882a5956c73a44.tar.gz opencode-eff50c0aab254c96966d94599c882a5956c73a44.zip | |
ignore: cloud
Diffstat (limited to 'cloud/app/src')
| -rw-r--r-- | cloud/app/src/app.tsx | 2 | ||||
| -rw-r--r-- | cloud/app/src/context/auth.tsx | 3 | ||||
| -rw-r--r-- | cloud/app/src/routes/index.tsx | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/cloud/app/src/app.tsx b/cloud/app/src/app.tsx index 504318995..bea9a3664 100644 --- a/cloud/app/src/app.tsx +++ b/cloud/app/src/app.tsx @@ -10,7 +10,7 @@ export default function App() { <Router root={props => ( <MetaProvider> - <Title>SolidStart - Basic</Title> + <Title>opencode</Title> <ErrorBoundary fallback={<div>Something went wrong</div>}> <Suspense>{props.children}</Suspense> </ErrorBoundary> diff --git a/cloud/app/src/context/auth.tsx b/cloud/app/src/context/auth.tsx index d6c5887c8..90db24d21 100644 --- a/cloud/app/src/context/auth.tsx +++ b/cloud/app/src/context/auth.tsx @@ -21,8 +21,11 @@ export const getActor = query(async (): Promise<Actor.Info> => { const url = new URL(evt!.request.headers.get("referer") ?? evt!.request.url) const auth = await useAuthSession() const [workspaceHint] = url.pathname.split("/").filter((x) => x.length > 0) + console.log("here1") if (!workspaceHint) { + console.log("here2") if (auth.data.current) { + console.log("here3") const current = auth.data.account[auth.data.current] return { type: "account", diff --git a/cloud/app/src/routes/index.tsx b/cloud/app/src/routes/index.tsx index 15b3990d4..fcc83abac 100644 --- a/cloud/app/src/routes/index.tsx +++ b/cloud/app/src/routes/index.tsx @@ -23,6 +23,7 @@ function CopyStatus() { const isLoggedIn = query(async () => { "use server" const actor = await getActor() + console.log(actor) if (actor.type === "account") { const workspaces = await withActor(() => Account.workspaces()) throw redirect("/" + workspaces[0].id) |
