Adds v2 launch instructions

pull/4369/head^2
zomars 2022-09-13 11:15:37 -05:00
parent 3c60b4f569
commit 6c4a372121
1 changed files with 2 additions and 0 deletions

View File

@ -44,7 +44,9 @@ const middleware: NextMiddleware = async (req) => {
}
/** Display available V2 pages to users who opted-in to early access */
if (
// ⬇ TODO: Remove this line for V2 launch
req.cookies.has("calcom-v2-early-access") &&
// ⬆ TODO: Remove this line for V2 launch
!V2_BLACKLIST.some((p) => url.pathname.startsWith(p)) &&
V2_WHITELIST.some((p) => url.pathname.startsWith(p))
) {