This commit is contained in:
hailin 2025-06-16 12:13:13 +08:00
parent 76478e6835
commit 9499cf2bb6
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
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,
})
}