Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(web): Fix websocket path (#1228)

Lumpiasty70596832d4eb
diff --git a/apps/web/src/hooks/use-project-websocket.ts b/apps/web/src/hooks/use-project-websocket.ts
index 90f4f1fb0..f16a7cf1b 100644
--- a/apps/web/src/hooks/use-project-websocket.ts
+++ b/apps/web/src/hooks/use-project-websocket.ts
@@ -8,7 +8,7 @@ function getWsUrl(projectId: string) {
import.meta.env.VITE_API_URL || "http://localhost:1337"
).replace(/\/+$/, "");
const wsBase = base.replace(/^http/, "ws");
- return `${wsBase}/api/ws/${encodeURIComponent(projectId)}?windowId=${encodeURIComponent(windowId)}`;
+ return `${wsBase}/ws/${encodeURIComponent(projectId)}?windowId=${encodeURIComponent(windowId)}`;
}
const MAX_RETRIES = 5;