feat: revert

This commit is contained in:
Nevo David 2025-07-11 21:58:02 +07:00
parent 65eca0e2f2
commit 0c3c1f3314
1 changed files with 3 additions and 9 deletions

View File

@ -41,9 +41,7 @@ export async function middleware(request: NextRequest) {
nextUrl.pathname.startsWith('/icons/')
) {
return NextResponse.next({
request: {
headers: headers,
},
headers,
});
}
// If the URL is logout, delete the cookie and redirect to login
@ -106,9 +104,7 @@ export async function middleware(request: NextRequest) {
return redirect;
}
return NextResponse.next({
request: {
headers: headers,
},
headers,
});
}
try {
@ -149,9 +145,7 @@ export async function middleware(request: NextRequest) {
);
}
const next = NextResponse.next({
request: {
headers: headers,
},
headers,
});
if (
nextUrl.pathname === '/marketplace/seller' ||