mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-24 08:44:21 +01:00
chore: fix hono cleint port resolution
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
process.env.PORT = "3400";
|
||||
|
||||
import "./standalone/server.js";
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "run-p 'dev:*'",
|
||||
"dev:next": "next dev -p 3400 --turbopack",
|
||||
"dev:next": "PORT=3400 next dev --turbopack",
|
||||
"build": "next build && cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/",
|
||||
"lint": "run-s 'lint:*'",
|
||||
"lint:biome-format": "biome format .",
|
||||
|
||||
@@ -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