⚡ 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(bug): added normalizedApiServerUrl to resolve asset url
justin5b9633e8402b
diff --git a/apps/api/src/task/index.ts b/apps/api/src/task/index.tsindex 9a275d917..464952f55 100644--- a/apps/api/src/task/index.ts+++ b/apps/api/src/task/index.ts@@ -17,6 +17,7 @@ import {isImageContentType,validateTaskAssetUploadInput,} from "../storage/s3";+import { normalizeApiServerUrl } from "../utils/openapi-spec";import { requireWorkspacePermission } from "../utils/require-workspace-permission";import { workspaceAccess } from "../utils/workspace-access-middleware";import bulkUpdateTasks from "./controllers/bulk-update-tasks";@@ -802,9 +803,12 @@ const task = new Hono<{id: assetTable.id,});+ const apiBaseUrl = normalizeApiServerUrl(+ process.env.KANEO_API_URL || "http://localhost:1337",+ );return c.json({id: asset.id,- url: new URL(`/api/asset/${asset.id}`, c.req.url).toString(),+ url: `${apiBaseUrl}/asset/${asset.id}`,});},)