Skip to content

Commit

Permalink
Create page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
nodoubtz authored Mar 6, 2025
1 parent 4f0404c commit d274cd6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

import { createClient } from '@/utils/supabase/server'
import { cookies } from 'next/headers'

export default async function Page() {
const cookieStore = await cookies()
const supabase = createClient(cookieStore)

const { data: todos } = await supabase.from('todos').select()

return (
<ul>
{todos?.map((todo) => (
<li>{todo}</li>
))}
</ul>
)
}

0 comments on commit d274cd6

Please sign in to comment.