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