From f9a3719b6bedb54318bfbcba29592c993155a70a Mon Sep 17 00:00:00 2001 From: fuomag9 <1580624+fuomag9@users.noreply.github.com> Date: Sun, 28 Dec 2025 15:18:04 +0100 Subject: [PATCH] renamed middleware.ts to proxy.ts and removed the runtime export --- middleware.ts => proxy.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename middleware.ts => proxy.ts (88%) diff --git a/middleware.ts b/proxy.ts similarity index 88% rename from middleware.ts rename to proxy.ts index 5ae63ab8..5501b16b 100644 --- a/middleware.ts +++ b/proxy.ts @@ -2,13 +2,12 @@ import { auth } from "@/src/lib/auth"; import { NextResponse } from "next/server"; /** - * Next.js Middleware for route protection. + * Next.js Proxy for route protection. * Provides defense-in-depth by checking authentication at the edge * before requests reach page components. * - * Note: Uses Node.js runtime because auth requires database access. + * Note: Proxy always runs on Node.js runtime. */ -export const runtime = 'nodejs'; export default auth((req) => { const isAuthenticated = !!req.auth;