diff options
| author | Jay V <[email protected]> | 2025-08-28 16:21:06 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-08-28 16:21:09 -0400 |
| commit | 3f225e3248c54b4f17a0e1067d64614814020ccc (patch) | |
| tree | 3d282c532fc2d62cc5d6f77d5b13470161965edc /cloud | |
| parent | 151ff053819f720adc8e84637a3626be88234209 (diff) | |
| download | opencode-3f225e3248c54b4f17a0e1067d64614814020ccc.tar.gz opencode-3f225e3248c54b4f17a0e1067d64614814020ccc.zip | |
ignore: cloud
Diffstat (limited to 'cloud')
| -rw-r--r-- | cloud/app/src/routes/index.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cloud/app/src/routes/index.tsx b/cloud/app/src/routes/index.tsx index 349d3952b..2b7678d0b 100644 --- a/cloud/app/src/routes/index.tsx +++ b/cloud/app/src/routes/index.tsx @@ -7,7 +7,7 @@ import IMG_SPLASH from "../asset/lander/screenshot-splash.png" import IMG_VSCODE from "../asset/lander/screenshot-vscode.png" import IMG_GITHUB from "../asset/lander/screenshot-github.png" import { IconCopy, IconCheck } from "../component/icon" -import { A, createAsync, query, redirect } from "@solidjs/router" +import { A, createAsync, query } from "@solidjs/router" import { getActor, withActor } from "~/context/auth" import { Account } from "@opencode/cloud-core/account.js" @@ -26,7 +26,6 @@ const isLoggedIn = query(async () => { if (actor.type === "account") { const workspaces = await withActor(() => Account.workspaces()) return workspaces[0].id - // throw redirect("/" + workspaces[0].id) } return false }, "isLoggedIn") @@ -84,8 +83,8 @@ export default function Home() { </div> <div data-slot="right"> {workspaceId() - ? <A href={`/workspace/${workspaceId()}`}>Dashboard</A> - : <A href="/auth/authorize">Login</A> + ? <A href={`/${workspaceId()}`}>Dashboard</A> + : <a href="/auth/authorize" target="_self">Login</a> } </div> </section> |
