From d4abe704110f56262aa679e1a6d8777c5001ffe3 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 2 Oct 2025 21:21:16 +0800 Subject: [PATCH] Hide dev options in production builds --- .../src/components/graph/Settings.tsx | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/lightrag_webui/src/components/graph/Settings.tsx b/lightrag_webui/src/components/graph/Settings.tsx index 41da2f22..ca257194 100644 --- a/lightrag_webui/src/components/graph/Settings.tsx +++ b/lightrag_webui/src/components/graph/Settings.tsx @@ -386,25 +386,29 @@ export default function Settings() { defaultValue={15} onEditFinished={setGraphLayoutMaxIterations} /> - - - {/* Development/Testing Section */} -
- - -
+ {/* Development/Testing Section - Only visible in development mode */} + {import.meta.env.DEV && ( + <> + - +
+ + +
+ + + + )}