diff options
| author | Dax Raad <[email protected]> | 2025-11-23 12:07:28 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-11-23 12:07:28 -0500 |
| commit | af96ec5a30dd2808f56539ae79904d1f353b6403 (patch) | |
| tree | af2127c22e2552aea5afb1be622db7ec670d8bee /packages | |
| parent | 55df80b80e93e5061ef8d3671324b047dbd334cd (diff) | |
| download | opencode-af96ec5a30dd2808f56539ae79904d1f353b6403.tar.gz opencode-af96ec5a30dd2808f56539ae79904d1f353b6403.zip | |
ignore: update @solidjs/start dependency and fix console redirect handling
Updates the @solidjs/start dependency to latest version and removes deprecated getResponseHeaders usage from auth callback. Also adds error handling for workspace ID lookup to prevent redirect failures.
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/console/app/src/routes/auth/callback.ts | 6 | ||||
| -rw-r--r-- | packages/console/app/src/routes/zen/index.tsx | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/packages/console/app/src/routes/auth/callback.ts b/packages/console/app/src/routes/auth/callback.ts index cdfc88229..a793b8596 100644 --- a/packages/console/app/src/routes/auth/callback.ts +++ b/packages/console/app/src/routes/auth/callback.ts @@ -1,5 +1,4 @@ import { redirect } from "@solidjs/router" -import { getResponseHeaders } from "@solidjs/start/http" import type { APIEvent } from "@solidjs/start/server" import { AuthClient } from "~/context/auth" import { useAuthSession } from "~/context/auth.session" @@ -29,8 +28,5 @@ export async function GET(input: APIEvent) { current: id, } }) - return redirect("/auth", { - status: 302, - headers: getResponseHeaders(), - }) + return redirect("/auth") } diff --git a/packages/console/app/src/routes/zen/index.tsx b/packages/console/app/src/routes/zen/index.tsx index 9c93b62dd..053f16e5f 100644 --- a/packages/console/app/src/routes/zen/index.tsx +++ b/packages/console/app/src/routes/zen/index.tsx @@ -21,7 +21,7 @@ import { getLastSeenWorkspaceID } from "../workspace/common" const checkLoggedIn = query(async () => { "use server" - const workspaceID = await getLastSeenWorkspaceID() + const workspaceID = await getLastSeenWorkspaceID().catch(() => {}) if (workspaceID) throw redirect(`/workspace/${workspaceID}`) }, "checkLoggedIn.get") |
