From cdb93cc88b90b142ff0e60fa9fa50b315bcdd4aa Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 16 Jun 2025 20:58:23 +0800 Subject: [PATCH] . --- apps/blogai/app/api/health/route.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/blogai/app/api/health/route.ts b/apps/blogai/app/api/health/route.ts index 388992b..087fdba 100644 --- a/apps/blogai/app/api/health/route.ts +++ b/apps/blogai/app/api/health/route.ts @@ -1,9 +1,8 @@ +export const runtime = 'nodejs' import { NextResponse } from 'next/server' import { getRuntimeEnv } from '@/lib/ipconfig' import fs from 'fs' -export const runtime = 'nodejs' - // ✅ 重定向 console.log / console.error 到文件 const logStream = fs.createWriteStream('/tmp/health-api.log', { flags: 'a' });