diff --git a/apps/opik-frontend/src/lib/utils.ts b/apps/opik-frontend/src/lib/utils.ts index e9d817450..7f20bd8ea 100644 --- a/apps/opik-frontend/src/lib/utils.ts +++ b/apps/opik-frontend/src/lib/utils.ts @@ -4,14 +4,10 @@ import isObject from "lodash/isObject"; import isUndefined from "lodash/isUndefined"; import { twMerge } from "tailwind-merge"; -const BASE_COMET_URL = import.meta.env.VITE_BASE_COMET_URL; +const BASE_DOCUMENTATION_URL = "https://comet.com/docs/opik"; export const buildDocsUrl = (path: string = "", hash: string = "") => { - const url = BASE_COMET_URL - ? `${BASE_COMET_URL}docs/opik` - : "https://comet.com/docs/opik"; - - return `${url}${path}?from=llm${hash}`; + return `${BASE_DOCUMENTATION_URL}${path}?from=llm${hash}`; }; export function cn(...inputs: ClassValue[]) { diff --git a/apps/opik-frontend/src/plugins/comet/UserMenu.tsx b/apps/opik-frontend/src/plugins/comet/UserMenu.tsx index ab7c0f5cf..176871169 100644 --- a/apps/opik-frontend/src/plugins/comet/UserMenu.tsx +++ b/apps/opik-frontend/src/plugins/comet/UserMenu.tsx @@ -31,7 +31,7 @@ import { } from "@/components/ui/dropdown-menu"; import TooltipWrapper from "@/components/shared/TooltipWrapper/TooltipWrapper"; import { useToast } from "@/components/ui/use-toast"; -import { cn } from "@/lib/utils"; +import { buildDocsUrl, cn } from "@/lib/utils"; import useAppStore from "@/store/AppStore"; import api from "./api"; import { Organization, ORGANIZATION_ROLE_TYPE } from "./types"; @@ -281,7 +281,7 @@ const UserMenu = () => { Quickstart guide - + Docs