diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts index 58ee523240..076f52f9e5 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.js index 5ff91a5487..bdd8f49a19 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, },