This commit is contained in:
parent
ee80370cf1
commit
2a611cf853
|
|
@ -93,6 +93,9 @@ export default async function RootLayout({
|
||||||
console.log(`🍪 Cookie: ${cookie.name} = ${cookie.value}`);
|
console.log(`🍪 Cookie: ${cookie.name} = ${cookie.value}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const supabaseUrl = getRuntimeEnv("SUPABASE_URL");
|
||||||
|
console.log("=================>Server's Supabase URL: ", supabaseUrl);
|
||||||
|
|
||||||
const supabase = createServerClient<Database>(
|
const supabase = createServerClient<Database>(
|
||||||
getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000",
|
getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000",
|
||||||
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
|
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
|
||||||
|
|
@ -114,7 +117,7 @@ export default async function RootLayout({
|
||||||
|
|
||||||
const { t, resources } = await initTranslations(locale, i18nNamespaces)
|
const { t, resources } = await initTranslations(locale, i18nNamespaces)
|
||||||
|
|
||||||
console.log("[layout.tsx]..............current locale: ", {locale});
|
//console.log("[layout.tsx]..............current locale: ", {locale});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { Database } from "@/supabase/types"
|
||||||
|
|
||||||
export const supabase = createBrowserClient<Database>(
|
export const supabase = createBrowserClient<Database>(
|
||||||
getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000",
|
getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000",
|
||||||
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY! // ✅ 编译时写死,照你意图
|
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue