This commit is contained in:
parent
c929269e8e
commit
2cd07d46eb
|
|
@ -71,6 +71,13 @@ export default async function RootLayout({
|
||||||
params: { locale }
|
params: { locale }
|
||||||
}: RootLayoutProps) {
|
}: RootLayoutProps) {
|
||||||
const cookieStore = cookies()
|
const cookieStore = cookies()
|
||||||
|
|
||||||
|
|
||||||
|
// 遍历所有 cookies
|
||||||
|
for (const cookie of cookieStore.getAll()) {
|
||||||
|
console.log(`🍪 Cookie: ${cookie.name} = ${cookie.value}`);
|
||||||
|
}
|
||||||
|
|
||||||
const supabase = createServerClient<Database>(
|
const supabase = createServerClient<Database>(
|
||||||
process.env.NEXT_PUBLIC_SUPABASE_URL!,
|
process.env.NEXT_PUBLIC_SUPABASE_URL!,
|
||||||
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
|
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue