diff --git a/playground/.env b/playground/.env index 8739b9b0..ed603803 100644 --- a/playground/.env +++ b/playground/.env @@ -1,2 +1,3 @@ AGENT_SERVER_URL=http://localhost:8080 -TEN_DEV_SERVER_URL=http://localhost:49483 \ No newline at end of file +TEN_DEV_SERVER_URL=http://localhost:49483 +EDIT_GRAPH_MODE=true \ No newline at end of file diff --git a/playground/src/common/constant.ts b/playground/src/common/constant.ts index b27692fb..2257ccdb 100644 --- a/playground/src/common/constant.ts +++ b/playground/src/common/constant.ts @@ -130,5 +130,4 @@ export const isLLM = (extensionName: string) => { return extensionName === "llm" || extensionName === "v2v"; } -// export const isProduction = process.env.NODE_ENV === "production"; -export const isProduction = true; \ No newline at end of file +export const isEditModeOn = process.env.EDIT_GRAPH_MODE === "true"; \ No newline at end of file diff --git a/playground/src/components/Chat/ChatCard.tsx b/playground/src/components/Chat/ChatCard.tsx index 9940a18d..f63e2344 100644 --- a/playground/src/components/Chat/ChatCard.tsx +++ b/playground/src/components/Chat/ChatCard.tsx @@ -14,7 +14,7 @@ import { useAppSelector, GRAPH_OPTIONS, isRagGraph, - isProduction, + isEditModeOn, } from "@/common"; import { setRtmConnected, @@ -113,7 +113,7 @@ export default function ChatCard(props: { className?: string }) {