Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(desktop): default shareable URL to localhost web in dev (#1438)
Bohan Jiangdf86f559e091
diff --git a/apps/desktop/src/renderer/src/platform/navigation.tsx b/apps/desktop/src/renderer/src/platform/navigation.tsxindex df9f148da5..efe14fe6eb 100644--- a/apps/desktop/src/renderer/src/platform/navigation.tsx+++ b/apps/desktop/src/renderer/src/platform/navigation.tsx@@ -15,10 +15,11 @@ import {} from "@/stores/tab-store";import { useWindowOverlayStore } from "@/stores/window-overlay-store";-// Public web app URL — injected at build time via .env.production. Falls-// back to the production host for dev builds so "Copy link" yields a URL-// that actually points somewhere a teammate can open.-const APP_URL = import.meta.env.VITE_APP_URL || "https://multica.ai";+// Public web app URL — injected at build time via .env.production. In dev+// (no VITE_APP_URL set) falls back to the local web dev server so "Copy+// link" in a dev build yields a URL that points at the running dev+// frontend, not the prod host. Matches the fallback used in pages/login.tsx.+const APP_URL = import.meta.env.VITE_APP_URL || "http://localhost:3000";/*** Extract the leading workspace slug from a path, or null if the path isn't