temp disable waitlist for user testing

This commit is contained in:
Dhravya Shah 2025-08-30 14:56:32 -07:00
parent 12223f6fde
commit 0537f34d2f

View file

@ -26,17 +26,18 @@ export default async function middleware(request: Request) {
return NextResponse.redirect(new URL("/login", request.url));
}
if (url.pathname !== "/waitlist") {
const response = await $fetch("@get/waitlist/status", {
headers: {
Authorization: `Bearer ${sessionCookie}`,
},
});
console.debug("[MIDDLEWARE] Waitlist status:", response.data);
if (response.data && !response.data.accessGranted) {
return NextResponse.redirect(new URL("/waitlist", request.url));
}
}
// TEMPORARILY DISABLED: Waitlist check
// if (url.pathname !== "/waitlist") {
// const response = await $fetch("@get/waitlist/status", {
// headers: {
// Authorization: `Bearer ${sessionCookie}`,
// },
// });
// console.debug("[MIDDLEWARE] Waitlist status:", response.data);
// if (response.data && !response.data.accessGranted) {
// return NextResponse.redirect(new URL("/waitlist", request.url));
// }
// }
console.debug("[MIDDLEWARE] Passing through to next handler");
console.debug("[MIDDLEWARE] === MIDDLEWARE END ===");