diff --git a/app/api/chat/[graph]/route.ts b/app/api/chat/[graph]/route.ts index 01003b36..18d4acf6 100644 --- a/app/api/chat/[graph]/route.ts +++ b/app/api/chat/[graph]/route.ts @@ -7,7 +7,7 @@ export async function POST(request: NextRequest, { params }: { params: { graph: const msg = request.nextUrl.searchParams.get('msg') try { - const result = await fetch(`http://127.0.0.1:5000/chat`, { + const result = await fetch(`${process.env.BACKEND_URL}/chat`, { method: 'POST', body: JSON.stringify({ repo: graphName, msg }), headers: {