mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-17 21:11:04 +00:00
temp disable waitlist for user testing
This commit is contained in:
parent
12223f6fde
commit
0537f34d2f
1 changed files with 12 additions and 11 deletions
|
|
@ -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 ===");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue