Skip to content

Commit 5a51c70

Browse files
committed
clean up unused imports
1 parent 5943995 commit 5a51c70

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

apps/frontend/src/middleware.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import { log } from 'console';
21
import { NextURL } from 'next/dist/server/web/next-url';
3-
import { redirect } from 'next/navigation'
42
import { type NextRequest, NextResponse } from 'next/server';
5-
import { ValidateUser } from './app/services/user';
6-
import { cookies } from 'next/headers';
73

84
const PUBLIC_ROUTES = ["/login", "/register"];
95

@@ -38,7 +34,13 @@ export default async function middleware(request: NextRequest) {
3834
}
3935

4036
export const config = {
41-
// matcher: /\/^(?!api\/.*|_next\/static\/.*|_next\/image\/.*|favicon.ico|sitemap.xml|robots.txt)$/,
4237
matcher: "/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt|login|register).*)",
38+
// matcher: [
39+
// "/matching",
40+
// "/",
41+
// "/profile",
42+
// "/question",
43+
// "/question/.*",
44+
// ],
4345
}
4446

0 commit comments

Comments
 (0)