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"] }