⚡ 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
/**
* Resolves the Hono client base URL from `VITE_API_URL` (or default).
* If the value already ends with `/api`, it is returned as-is; otherwise `/api` is appended.
*/
export function resolveApiBaseUrl(viteApiUrl: string | undefined): string {
const raw = viteApiUrl || "http://localhost:1337";
const baseUrl = raw.replace(/\/+$/, "");
return baseUrl.endsWith("/api") ? baseUrl : `${baseUrl}/api`;
}