From 6c4a372121e329beb7e176006ac9bb9c12b138b6 Mon Sep 17 00:00:00 2001 From: zomars Date: Tue, 13 Sep 2022 11:15:37 -0500 Subject: [PATCH] Adds v2 launch instructions --- apps/web/middleware.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts index 7b836e3121..0f1f96b230 100644 --- a/apps/web/middleware.ts +++ b/apps/web/middleware.ts @@ -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)) ) {