From c41946224874cdc8ccb7f28e2d7cbb8e106fb99a Mon Sep 17 00:00:00 2001 From: sirily11 <32106111+sirily11@users.noreply.github.com> Date: Sun, 18 Jan 2026 12:18:31 +0800 Subject: [PATCH] fix: ci build --- middleware.ts => proxy.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename middleware.ts => proxy.ts (97%) diff --git a/middleware.ts b/proxy.ts similarity index 97% rename from middleware.ts rename to proxy.ts index ae26365..25aa37b 100644 --- a/middleware.ts +++ b/proxy.ts @@ -21,7 +21,7 @@ const adminRoutes = ["/admin/dashboard"]; // Routes that should redirect to account if already logged in const authRoutes = ["/login", "/register"]; -export async function middleware(request: NextRequest) { +export async function proxy(request: NextRequest) { const { pathname } = request.nextUrl; // Security headers diff --git a/tsconfig.json b/tsconfig.json index 3a13f90..577a4f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,5 +30,5 @@ ".next/dev/types/**/*.ts", "**/*.mts" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "e2e"] }