diff --git a/examples/auth/nextjs/components/tutorial/FetchDataSteps.tsx b/examples/auth/nextjs/components/tutorial/FetchDataSteps.tsx index c4b2160de37..da048fbd2d2 100644 --- a/examples/auth/nextjs/components/tutorial/FetchDataSteps.tsx +++ b/examples/auth/nextjs/components/tutorial/FetchDataSteps.tsx @@ -18,7 +18,7 @@ const server = ` import { createClient } from '@/utils/supabase/server' export default async function Page() { - const supabase = createClient() + const supabase = await createClient() const { data: notes } = await supabase.from('notes').select() return
{JSON.stringify(notes, null, 2)}