This commit is contained in:
parent
2a54758324
commit
f326ecc072
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue