From a5c05bc550b69ec66c9e1e6a26944a3af6fb3af0 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 20 Sep 2023 19:56:48 +0100 Subject: [PATCH] chore: Add login to rewrites (#11466) --- apps/web/next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index be0fe69cdd..5922803442 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -226,6 +226,10 @@ const nextConfig = { }, async rewrites() { const beforeFiles = [ + { + source: "/login", + destination: "/auth/login", + }, // These rewrites are other than booking pages rewrites and so that they aren't redirected to org pages ensure that they happen in beforeFiles ...(isOrganizationsEnabled ? [