10 lines
335 B
TypeScript
10 lines
335 B
TypeScript
import { createClient } from '@/utils/supabase/server';
|
|
import { cookies } from 'next/headers';
|
|
|
|
export default async function Notes() {
|
|
const cookieStore = cookies()
|
|
const supabase = createClient(cookieStore);
|
|
const { data: notes } = await supabase.from("notes").select();
|
|
|
|
return <pre>{JSON.stringify(notes, null, 2)}</pre>
|
|
} |