The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
updated createClient() function for latest nextjs app otherwise it won't work with it (#18692)
Muhammad Saleem1e26db282c24
diff --git a/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdx b/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdxindex 9debfcdf84b..0fcf102c2f1 100644--- a/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdx+++ b/apps/docs/pages/guides/getting-started/quickstarts/nextjs.mdx@@ -94,11 +94,12 @@ export const meta = {```ts app/notes/page.tsximport { createClient } from '@/utils/supabase/server';+ import { cookies } from 'next/headers';export const dynamic = "force-dynamic";export default async function Notes() {- const supabase = createClient();+ const supabase = createClient(cookies());const { data: notes } = await supabase.from("notes").select();return <pre>{JSON.stringify(notes, null, 2)}</pre>