diff --git a/chatdesk-ui/app/[locale]/login/page.tsx b/chatdesk-ui/app/[locale]/login/page.tsx index ae1c779..53cd12b 100644 --- a/chatdesk-ui/app/[locale]/login/page.tsx +++ b/chatdesk-ui/app/[locale]/login/page.tsx @@ -9,6 +9,7 @@ import { get } from "@vercel/edge-config" import { Metadata } from "next" import { cookies, headers } from "next/headers" import { redirect } from "next/navigation" +import { getRuntimeEnv } from "@/lib/ipconfig" // 新增引入 import initTranslations from "@/lib/i18n"; @@ -30,7 +31,7 @@ export default async function Login({ const { t, resources } = await initTranslations(localeString, ['translation']); const supabase = createServerClient( - process.env.NEXT_PUBLIC_SUPABASE_URL!, + getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000", process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, { cookies: {