This commit is contained in:
hailin 2025-06-16 12:17:46 +08:00
parent 9499cf2bb6
commit 6ad20f12b2
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
import { NextResponse } from 'next/server' import { NextResponse } from 'next/server'
import { getRuntimeEnv } from '@/lib/ipconfig' // 按你项目实际路径修改 import { getRuntimeEnv } from '@/lib/http/ipconfig' // 路径按你项目实际调整
export async function GET() { export async function GET() {
let ip: string | null = null let ip: string | null = null
try { try {
ip = await getRuntimeEnv('SUPABASE_URL') const res = await getRuntimeEnv('SUPABASE_URL')
ip = res ?? null
} catch (e) { } catch (e) {
ip = null ip = null
} }