diff --git a/src/components/BatchDeleteChats.tsx b/src/components/BatchDeleteChats.tsx index 209efe7..4f7f32c 100644 --- a/src/components/BatchDeleteChats.tsx +++ b/src/components/BatchDeleteChats.tsx @@ -36,7 +36,7 @@ const BatchDeleteChats = ({ setLoading(true); try { for (const chatId of chatIds) { - await fetch(`${process.env.NEXT_PUBLIC_API_URL}/chats/${chatId}`, { + await fetch(`/api/chats/${chatId}`, { method: 'DELETE', headers: { 'Content-Type': 'application/json',