From 8b053a4415e8a9ac007e4769f62eb5d9da499175 Mon Sep 17 00:00:00 2001 From: Henry Li Date: Mon, 9 Feb 2026 09:20:32 +0800 Subject: [PATCH] feat: update workspace header to conditionally render title based on environment variable --- .../src/components/workspace/workspace-header.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/workspace/workspace-header.tsx b/frontend/src/components/workspace/workspace-header.tsx index 9cfd5fc..db68c34 100644 --- a/frontend/src/components/workspace/workspace-header.tsx +++ b/frontend/src/components/workspace/workspace-header.tsx @@ -12,6 +12,7 @@ import { useSidebar, } from "@/components/ui/sidebar"; import { useI18n } from "@/core/i18n/hooks"; +import { env } from "@/env"; import { cn } from "@/lib/utils"; export function WorkspaceHeader({ className }: { className?: string }) { @@ -35,9 +36,15 @@ export function WorkspaceHeader({ className }: { className?: string }) { ) : (
- - DeerFlow - + {env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ? ( + + DeerFlow + + ) : ( +
+ DeerFlow +
+ )}
)}