⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix: ensure API URL structure is consistent by handling trailing '/api' in base URL
Andrej Acevski6a03fa4d78e9
diff --git a/packages/libs/src/hono.ts b/packages/libs/src/hono.tsindex 3ed3d944d..8bea8331a 100644--- a/packages/libs/src/hono.ts+++ b/packages/libs/src/hono.ts@@ -4,7 +4,7 @@ import type { AppType } from "@kaneo/api";import { hc } from "hono/client";const baseUrl = import.meta.env.VITE_API_URL || "http://localhost:1337";-const apiUrl = `${baseUrl}/api`;+const apiUrl = baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;export const client = hc<AppType>(apiUrl, {fetch: (input: RequestInfo | URL, init?: RequestInit) => {