diff --git a/middleware.ts b/proxy.ts similarity index 94% rename from middleware.ts rename to proxy.ts index 427f704..2a03e65 100644 --- a/middleware.ts +++ b/proxy.ts @@ -1,7 +1,7 @@ import { NextResponse } from "next/server"; import type { NextRequest } from "next/server"; -export function middleware(request: NextRequest) { +export function proxy(request: NextRequest) { const token = request.cookies.get("token")?.value; const pathname = request.nextUrl.pathname;