From 2cd07d46ebc73c05ff6cae65de91d08ce2a62774 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 22 Apr 2025 08:34:22 +0800 Subject: [PATCH] . --- app/[locale]/layout.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index fe21f72..cfed5df 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -71,6 +71,13 @@ export default async function RootLayout({ params: { locale } }: RootLayoutProps) { const cookieStore = cookies() + + + // 遍历所有 cookies + for (const cookie of cookieStore.getAll()) { + console.log(`🍪 Cookie: ${cookie.name} = ${cookie.value}`); + } + const supabase = createServerClient( process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,