The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(docs): fix middleware related info
markcius.ethc34f7ac3ff97
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 2f0c721da89..a4949de2872 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@@ -108,6 +108,7 @@ export const createClient = () =>This will be used any time we need to create a Supabase client _server-side_ - in a Server Component, for example.Next, we need a middleware file to refresh the user's session on navigation.+> If you were using Middleware prior to 12.2, please see the [upgrade guide](https://nextjs.org/docs/messages/middleware-upgrade-guide).<Tabsscrollable@@ -117,7 +118,7 @@ Next, we need a middleware file to refresh the user's session on navigation.><TabPanel id="js" label="JavaScript">-Create a new `/app/middleware.js` file and populate with the following:+Create a new `middleware.js` file at the same level as your `app` (in the root or `src` directory) and populate with the following:```jsx title="middleware.js"import { createMiddlewareSupabaseClient } from '@supabase/auth-helpers-nextjs'@@ -140,7 +141,7 @@ export async function middleware(req) {<TabPanel id="ts" label="TypeScript">-Create a new `/app/middleware.ts` file and populate with the following:+Create a new `middleware.ts` file at the same level as your `app` (in the root or `src` directory) and populate with the following:```tsx title="middleware.ts"import { createMiddlewareSupabaseClient } from '@supabase/auth-helpers-nextjs'