From be297da61dcf04be96d442e9f7520dcbff46ce43 Mon Sep 17 00:00:00 2001 From: jacob-buster Date: Wed, 30 Jul 2025 14:31:31 -0600 Subject: [PATCH 1/2] Use Supabase context vibecode --- apps/web/src/app/test/layout.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/test/layout.tsx b/apps/web/src/app/test/layout.tsx index f2ce9737c..9646aa7b3 100644 --- a/apps/web/src/app/test/layout.tsx +++ b/apps/web/src/app/test/layout.tsx @@ -1,6 +1,16 @@ import { BusterReactQueryProvider } from '@/context/BusterReactQuery/BusterReactQueryAndApi'; +import { SupabaseContextProvider } from '@/context/Supabase'; +import { getSupabaseUserContext } from '@/lib/supabase'; import { QueryClient } from '@tanstack/react-query'; -export default function Layout({ children }: { children: React.ReactNode }) { - return {children}; -} +export default async function Layout({ children }: { children: React.ReactNode }) { + const supabaseContext = await getSupabaseUserContext(); + + return ( + + + {children} + + + ); +} \ No newline at end of file From b06911a3f124542b5f6fd80beee069d3aa0899b4 Mon Sep 17 00:00:00 2001 From: jacob-buster Date: Wed, 30 Jul 2025 14:35:15 -0600 Subject: [PATCH 2/2] added new line --- apps/web/src/app/test/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/test/layout.tsx b/apps/web/src/app/test/layout.tsx index 9646aa7b3..a159be0f9 100644 --- a/apps/web/src/app/test/layout.tsx +++ b/apps/web/src/app/test/layout.tsx @@ -13,4 +13,4 @@ export default async function Layout({ children }: { children: React.ReactNode } ); -} \ No newline at end of file +}