Skip to content

Commit

Permalink
Chore: make snippet in Next.js quickstart consistent (supabase#18719)
Browse files Browse the repository at this point in the history
make example consistent with other examples
  • Loading branch information
dijonmusters authored Nov 4, 2023
1 parent eba55ea commit 1382088
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ export const meta = {
import { createClient } from '@/utils/supabase/server';
import { cookies } from 'next/headers';
export const dynamic = "force-dynamic";
export default async function Notes() {
const supabase = createClient(cookies());
const cookieStore = cookies()
const supabase = createClient(cookieStore);
const { data: notes } = await supabase.from("notes").select();
return <pre>{JSON.stringify(notes, null, 2)}</pre>
Expand Down

0 comments on commit 1382088

Please sign in to comment.