This commit is contained in:
parent
76478e6835
commit
9499cf2bb6
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
Loading…
Reference in New Issue