The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix typos
Jon Meyers5eabba61739e
diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdxindex f094dd4f486..b461b029637 100644--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs-server-components.mdx@@ -144,8 +144,9 @@ Create a new `/app/middleware.js` file and populate with the following:```tsx title="middleware.ts"import { createMiddlewareSupabaseClient } from '@supabase/auth-helpers-nextjs'+import { NextResponse } from 'next/server'-import type { NextRequest, NextResponse } from 'next/server'+import type { NextRequest } from 'next/server'import type { Database } from '../lib/database.types'export async function middleware(req: NextRequest) {@@ -221,8 +222,6 @@ export const createClient = () => createBrowserSupabaseClient<Database>()</TabPanel></Tabs>-Next, we need to create a single instance of Supabase to use client-side. Let's create a new Provider for Supabase.-<Tabsscrollablesize="small"@@ -231,6 +230,8 @@ Next, we need to create a single instance of Supabase to use client-side. Let's><TabPanel id="js" label="JavaScript">+Next, we need to create a single instance of Supabase to use client-side. Let's create a new Provider for Supabase at `/components/supabase-provider.jsx` and populate with the following:+```jsx title=components/supabase-provider.jsx'use client'@@ -248,7 +249,7 @@ export default function SupabaseProvider({ children }) {router.refresh()}})-+return () => subscription.unsubscribe()}, [accessToken])@@ -266,6 +267,8 @@ export const useSupabase = () => useContext(Context)<TabPanel id="ts" label="TypeScript">+Next, we need to create a single instance of Supabase to use client-side. Let's create a new Provider for Supabase at `/components/supabase-provider.tsx` and populate with the following:+```tsx title=components/supabase-provider.tsx'use client'