The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
try basic middleware. just returns
Jonathan Summers-Muirad427a80d694
diff --git a/apps/docs/pages/_middleware.ts b/apps/docs/pages/_middleware.tsnew file mode 100644index 00000000000..f60f6b77aab--- /dev/null+++ b/apps/docs/pages/_middleware.ts@@ -0,0 +1,15 @@+// middleware.ts+import { NextRequest, NextResponse } from 'next/server'++// If the incoming request has the "beta" cookie+// then we'll rewrite the request to /beta+export function middleware(req: NextRequest) {+ // const isInBeta = JSON.parse(req.cookies.get('beta') || 'false')+ // req.nextUrl.pathname = isInBeta ? '/beta' : '/'+ return NextResponse+}++// Supports both a single value or an array of matches+// export const config = {+// matcher: '/',+// }