From c62be9854a5d84106c3cec85599f57184fca37bb Mon Sep 17 00:00:00 2001 From: charlesgauthereau Date: Mon, 3 Nov 2025 11:37:54 +0100 Subject: [PATCH] Ready for 1.1.3-rc.2 --- middleware.ts => proxy.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename middleware.ts => proxy.ts (96%) diff --git a/middleware.ts b/proxy.ts similarity index 96% rename from middleware.ts rename to proxy.ts index 7fb93750..27cabc5d 100644 --- a/middleware.ts +++ b/proxy.ts @@ -5,7 +5,7 @@ import { auth } from "@/lib/auth/auth"; import { headers } from "next/headers"; import { signOut } from "@/lib/auth/auth-client"; -export async function middleware(request: NextRequest) { +export async function proxy(request: NextRequest) { const url = request.nextUrl.clone(); const redirectUrl = encodeURIComponent(request.nextUrl.pathname) @@ -69,10 +69,9 @@ function checkRouteExists(pathname: string) { } export const config = { - runtime: "nodejs", matcher: [ "/api/:path*", "/dashboard/:path*", "/dashboard", - ], + ] };