This commit is contained in:
hailin 2025-06-16 20:58:23 +08:00
parent 1f3d7b9a9c
commit cdb93cc88b
1 changed files with 1 additions and 2 deletions

View File

@ -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' });