diff --git a/apps/blogai/app/api/health/route.ts b/apps/blogai/app/api/health/route.ts index 21a827e..75d9780 100644 --- a/apps/blogai/app/api/health/route.ts +++ b/apps/blogai/app/api/health/route.ts @@ -1,5 +1,6 @@ import { NextResponse } from 'next/server' import { getRuntimeEnv } from '@/lib/ipconfig' // 路径按你项目实际调整 +import fs from 'fs' export const runtime = 'nodejs' @@ -8,6 +9,7 @@ export async function GET() { let res: string | undefined = undefined try { + fs.appendFileSync('/tmp/health-api.log', `[${new Date().toISOString()}] API HIT\n`); res = await getRuntimeEnv('SUPABASE_URL') ip = res ?? null