🐛 Remove console log
This commit is contained in:
parent
581d50d26e
commit
b742a08230
@ -5,7 +5,6 @@ import type { NextRequest } from "next/server";
|
|||||||
|
|
||||||
export async function middleware(request: NextRequest) {
|
export async function middleware(request: NextRequest) {
|
||||||
const cookieStaging = request.cookies.get("protect_staging");
|
const cookieStaging = request.cookies.get("protect_staging");
|
||||||
console.log(cookieStaging);
|
|
||||||
if (!cookieStaging) return NextResponse.redirect(new URL("/protect", request.url));
|
if (!cookieStaging) return NextResponse.redirect(new URL("/protect", request.url));
|
||||||
|
|
||||||
// Get the JWT from the cookies
|
// Get the JWT from the cookies
|
||||||
|
Loading…
x
Reference in New Issue
Block a user