From 4ec3e48c624f79b77d23beb09df968dbf2c7caaf Mon Sep 17 00:00:00 2001 From: Ryan Salazar Date: Tue, 26 May 2026 15:08:58 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20drop=20next.config=20/login=20=E2=86=92?= =?UTF-8?q?=20/client-login=20redirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit next.config redirects fire before middleware/page.tsx, so /login still 307'd to /client-login (which bounces to distribute). Removing the config rule lets src/app/login/page.tsx serve a real BB-direct sign-in form for admin access. Co-Authored-By: Claude Opus 4.7 (1M context) --- next.config.mjs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 3042b64..0b29152 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -124,12 +124,8 @@ const nextConfig = { destination: '/client-login', permanent: true, }, - // Login alias — /login redirects to canonical /client-login - { - source: '/login', - destination: '/client-login', - permanent: false, - }, + // /login is a real BB-direct sign-in page (used by admin backend). + // Do NOT redirect it to /client-login anymore. ]; } };