This commit is contained in:
parent
52a445cff1
commit
e5c3f42606
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue