This commit is contained in:
hailin 2025-05-18 23:16:57 +08:00
parent 52a445cff1
commit e5c3f42606
1 changed files with 2 additions and 1 deletions

View File

@ -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<Database>(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000",
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
{
cookies: {