🐛 Remove console log

This commit is contained in:
Maxime Lalo 2023-09-14 16:49:02 +02:00
parent 581d50d26e
commit b742a08230

View File

@ -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