diff --git a/frontend/app/api/chat/route.ts b/frontend/app/api/chat/route.ts index 13fa318..9356281 100644 --- a/frontend/app/api/chat/route.ts +++ b/frontend/app/api/chat/route.ts @@ -1,6 +1,6 @@ import { NextResponse } from 'next/server'; -const CHAT_HOST = process.env.CHAT_API_URL || process.env.NEXT_PUBLIC_CHAT_API_URL || 'https://f52c8f4e7dfc.ngrok-free.app'; +const CHAT_HOST = process.env.CHAT_API_URL || process.env.NEXT_PUBLIC_CHAT_API_URL || 'https://fc39539f7cb9.ngrok-free.app'; export async function POST(req: Request) { try { diff --git a/frontend/components/try/ChatbotPanel.tsx b/frontend/components/try/ChatbotPanel.tsx index 8309601..67697f3 100644 --- a/frontend/components/try/ChatbotPanel.tsx +++ b/frontend/components/try/ChatbotPanel.tsx @@ -2,7 +2,7 @@ import { useState, useRef, useEffect } from "react"; import { chatWithCopilot } from "../../lib/api"; -const CHAT_ENDPOINT = process.env.NEXT_PUBLIC_CHAT_API_URL || 'https://f52c8f4e7dfc.ngrok-free.app'; +const CHAT_ENDPOINT = process.env.NEXT_PUBLIC_CHAT_API_URL || 'https://fc39539f7cb9.ngrok-free.app'; export function ChatbotPanel() { const [messages, setMessages] = useState<{ role: "user" | "assistant"; content: string; pending?: boolean; error?: boolean }[]>([