From e5c3f42606672c2181d8b13f4b19668360ad1161 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 18 May 2025 23:16:57 +0800 Subject: [PATCH] . --- chatdesk-ui/app/[locale]/login/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: {