Skip to content

Commit 3065d9c

Browse files
committed
omg
1 parent 75bd96a commit 3065d9c

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

middleware.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function middleware(req: NextRequest) {
2626

2727
const redirectUrl = req.nextUrl.clone();
2828

29-
// Check auth conditions
29+
// Check auth condition
3030
if (session?.user) {
3131
// Authentication successful, forward request to protected route.
3232

@@ -48,11 +48,7 @@ export async function middleware(req: NextRequest) {
4848
}
4949

5050
export const config = {
51-
matcher: [
52-
'/!opengraph*',
53-
'/((?!favicon.ico|_next|opengraph*).*)',
54-
'/api/:path*',
55-
],
51+
matcher: ['/((?!favicon.ico|_next|opengraph*).*)', '/api/:path*'],
5652
};
5753

5854
// export const config = {

0 commit comments

Comments
 (0)