hts/apps/blogai/app/api/health/route.ts

17 lines
336 B
TypeScript

import { NextResponse } from 'next/server'
import { getRuntimeEnv } from '@/lib/ipconfig' // 按你项目实际路径修改
export async function GET() {
let ip: string | null = null
try {
ip = await getRuntimeEnv('SUPABASE_URL')
} catch (e) {
ip = null
}
return NextResponse.json({
status: 'ok',
ip,
})
}