refactor: update docs link to be modular (#3637)

changed docs link to be modular
This commit is contained in:
Lucas Oliveira 2024-08-30 18:51:05 -03:00 committed by GitHub
commit c9cf9d8304
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -12,6 +12,7 @@ import { AuthContext } from "../../contexts/authContext";
import { useLogout } from "@/controllers/API/queries/auth";
import { CustomLink } from "@/customization/components/custom-link";
import { DOCS_LINK } from "@/customization/config-constants";
import {
ENABLE_DARK_MODE,
ENABLE_PROFILE_ICONS,
@ -257,7 +258,10 @@ export default function Header(): JSX.Element {
<DropdownMenuItem
className="cursor-pointer gap-2"
onClick={() =>
window.open("https://docs.langflow.org/", "_blank")
window.open(
DOCS_LINK || "https://docs.langflow.org/",
"_blank",
)
}
>
<ForwardedIconComponent name="FileText" className="w-4" />

View file

@ -4,8 +4,10 @@ export const PROXY_TARGET = "http://127.0.0.1:7860";
export const API_ROUTES = ["^/api/v1/", "/health"];
export const BASE_URL_API = "/api/v1/";
export const HEALTH_CHECK_URL = "/health_check";
export const DOCS_LINK = "https://docs.langflow.com";
export default {
DOCS_LINK,
BASENAME,
PORT,
PROXY_TARGET,