Skip to content

Commit 9c1e99b

Browse files
committed
update API endpoint path
1 parent 825a266 commit 9c1e99b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/toolbar/chat/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const Chat = () => {
2121
const { toast } = useToast();
2222

2323
const { messages, input, handleInputChange, handleSubmit, isLoading } = useChat({
24+
api: `${process.env.NEXT_PUBLIC_REWRITE_URL}/api/chat`,
2425
onError(error) {
2526
toast({
2627
title: `Error: ${error}`,

0 commit comments

Comments
 (0)