diff --git a/cloud/app/src/app.tsx b/cloud/app/src/app.tsx index 50431899..bea9a366 100644 --- a/cloud/app/src/app.tsx +++ b/cloud/app/src/app.tsx @@ -10,7 +10,7 @@ export default function App() { ( - SolidStart - Basic + opencode Something went wrong}> {props.children} diff --git a/cloud/app/src/context/auth.tsx b/cloud/app/src/context/auth.tsx index d6c5887c..90db24d2 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 => { 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 15b3990d..fcc83aba 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)