// import { createBrowserClient } from "@supabase/ssr"
// import { getRuntimeEnv } from "@/lib/ipconfig"  // 新增引入

// export const createClient = () =>
//   createBrowserClient(
//     getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000",
//     process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
//   )


import { createBrowserClient } from "@supabase/ssr"
import { getRuntimeEnv } from "@/lib/ipconfig"

export const createClient = () =>
  createBrowserClient(
    getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000",
    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!  // 编译时写死，放心用！
  )