diff --git a/middleware.ts b/proxy.ts similarity index 88% rename from middleware.ts rename to proxy.ts index 41b65d7..d45c682 100644 --- a/middleware.ts +++ b/proxy.ts @@ -1,7 +1,7 @@ import { getSessionCookie } from "better-auth/cookies"; import { type NextRequest, NextResponse } from "next/server"; -export function middleware(request: NextRequest) { +export function proxy(request: NextRequest) { const sessionCookie = getSessionCookie(request); if (!sessionCookie) {