mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2026-01-04 14:14:22 +01:00
fix: disable tool approve for old claude code version
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { hc } from "hono/client";
|
||||
import type { RouteType } from "../../server/hono/route";
|
||||
import { env } from "../../server/lib/env";
|
||||
|
||||
export const honoClient = hc<RouteType>(
|
||||
typeof window === "undefined"
|
||||
? // biome-ignore lint/complexity/useLiteralKeys: TypeScript restriction
|
||||
`http://localhost:${process.env["PORT"] ?? 3000}/`
|
||||
: "/",
|
||||
typeof window === "undefined" ? `http://localhost:${env.get("PORT")}/` : "/",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user