File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- import { log } from 'console' ;
2
1
import { NextURL } from 'next/dist/server/web/next-url' ;
3
- import { redirect } from 'next/navigation'
4
2
import { type NextRequest , NextResponse } from 'next/server' ;
5
- import { ValidateUser } from './app/services/user' ;
6
- import { cookies } from 'next/headers' ;
7
3
8
4
const PUBLIC_ROUTES = [ "/login" , "/register" ] ;
9
5
@@ -38,7 +34,13 @@ export default async function middleware(request: NextRequest) {
38
34
}
39
35
40
36
export const config = {
41
- // matcher: /\/^(?!api\/.*|_next\/static\/.*|_next\/image\/.*|favicon.ico|sitemap.xml|robots.txt)$/,
42
37
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
+ // ],
43
45
}
44
46
You can’t perform that action at this time.
0 commit comments