The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update nextjs.mdx (#37420)
wheredoesyourmindgo465600fc9282
diff --git a/apps/docs/content/guides/auth/server-side/nextjs.mdx b/apps/docs/content/guides/auth/server-side/nextjs.mdxindex 2cae8e90d46..0443da17257 100644--- a/apps/docs/content/guides/auth/server-side/nextjs.mdx+++ b/apps/docs/content/guides/auth/server-side/nextjs.mdx@@ -264,7 +264,8 @@ export async function updateSession(request: NextRequest) {if (!user &&!request.nextUrl.pathname.startsWith('/login') &&- !request.nextUrl.pathname.startsWith('/auth')+ !request.nextUrl.pathname.startsWith('/auth') &&+ !request.nextUrl.pathname.startsWith('/error')) {// no user, potentially respond by redirecting the user to the login pageconst url = request.nextUrl.clone()