mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: enable ai chat by env (#5134)
This commit is contained in:
@@ -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<{
|
||||
|
||||
Reference in New Issue
Block a user