docs: enable ai chat by env (#5134)

This commit is contained in:
Alex Yang
2025-10-06 16:32:03 -07:00
committed by GitHub
parent 2a5b5b0cc0
commit 2f5c9fb0e9
2 changed files with 4 additions and 0 deletions

View File

@@ -245,6 +245,9 @@ function Message({
}
export function AISearchTrigger() {
if (process.env.NEXT_PUBLIC_ENABLE_AI_CHAT !== "true") {
return null;
}
const [open, setOpen] = useState(false);
const [messages, setMessages] = useState<
Array<{