From e9285ebbef8f3b99f193fbaa84a98877dd470ea6 Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Thu, 14 Sep 2023 23:26:37 +0800 Subject: [PATCH] fix bug --- app/api/langchain/tool/agent/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/langchain/tool/agent/route.ts b/app/api/langchain/tool/agent/route.ts index 5a31a2ea8..94c74f10f 100644 --- a/app/api/langchain/tool/agent/route.ts +++ b/app/api/langchain/tool/agent/route.ts @@ -294,4 +294,5 @@ async function handle(req: NextRequest) { export const GET = handle; export const POST = handle; -export const runtime = process.env.DDG_PROXY_URL ? "nodejs" : "edge"; +export const runtime = + process.env.DDG_PROXY_URL != undefined ? "nodejs" : "edge";