We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1deda79 commit 0ebda34Copy full SHA for 0ebda34
src/components/BatchDeleteChats.tsx
@@ -36,7 +36,7 @@ const BatchDeleteChats = ({
36
setLoading(true);
37
try {
38
for (const chatId of chatIds) {
39
- await fetch(`${process.env.NEXT_PUBLIC_API_URL}/chats/${chatId}`, {
+ await fetch(`/api/chats/${chatId}`, {
40
method: 'DELETE',
41
headers: {
42
'Content-Type': 'application/json',
0 commit comments