This commit is contained in:
hailin 2025-06-16 15:02:57 +08:00
parent 2a54758324
commit f326ecc072
1 changed files with 2 additions and 0 deletions

View File

@ -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