mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2026-01-10 09:04:24 +01:00
chore: fix hono cleint port resolution
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { hc } from "hono/client";
|
||||
import type { RouteType } from "../../server/hono/route";
|
||||
|
||||
export const honoClient = hc<RouteType>("http://localhost:3400");
|
||||
export const honoClient = hc<RouteType>(
|
||||
typeof window === "undefined"
|
||||
? `http://localhost:${process.env["PORT"] ?? 3000}/`
|
||||
: "/"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user