Scheduling infrastructure for absolutely everyone.
Removed cookie requirement for V2
zomarsa9b41766f205
diff --git a/apps/web/middleware.ts b/apps/web/middleware.tsindex 58ee5232403..076f52f9e59 100644--- a/apps/web/middleware.ts+++ b/apps/web/middleware.ts@@ -43,11 +43,8 @@ const middleware: NextMiddleware = async (req) => {return NextResponse.redirect(req.nextUrl);}}- /** Display available V2 pages to users who opted-in to early access */+ /** Display available V2 pages */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))) {diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex 5ff91a54879..bdd8f49a19c 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -156,19 +156,17 @@ const nextConfig = {},{source: "/settings",- destination: "/settings/profile",+ destination: "/settings/my-account/profile",permanent: true,},/* V2 testers get redirected to the new settings */{source: "/settings/profile",- has: [{ type: "cookie", key: "calcom-v2-early-access" }],destination: "/settings/my-account/profile",permanent: false,},{source: "/settings/security",- has: [{ type: "cookie", key: "calcom-v2-early-access" }],destination: "/settings/security/password",permanent: false,},