paper-ai-release-24-07-21/app/nodes/page.tsx
Liuweiqing 9429952505 init
2024-01-18 15:46:18 +08:00

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>
}