From 6229f8e886ae48170df2f7c77e7d9eb857d116b4 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 6 Feb 2026 13:39:38 +0100 Subject: [PATCH] feat: Add Next.js basePath and relocate the login page to `/login`. --- packages/gatekeeper/next.config.ts | 2 +- .../gatekeeper/src/app/{gatekeeper => }/login/page.tsx | 8 +++----- packages/gatekeeper/src/app/page.tsx | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) rename packages/gatekeeper/src/app/{gatekeeper => }/login/page.tsx (96%) diff --git a/packages/gatekeeper/next.config.ts b/packages/gatekeeper/next.config.ts index 4e2de7b..b38c051 100644 --- a/packages/gatekeeper/next.config.ts +++ b/packages/gatekeeper/next.config.ts @@ -2,7 +2,7 @@ import mintelNextConfig from "@mintel/next-config"; import { NextConfig } from "next"; const nextConfig: NextConfig = { - // Gatekeeper specific overrides + basePath: "/gatekeeper", }; export default mintelNextConfig(nextConfig); diff --git a/packages/gatekeeper/src/app/gatekeeper/login/page.tsx b/packages/gatekeeper/src/app/login/page.tsx similarity index 96% rename from packages/gatekeeper/src/app/gatekeeper/login/page.tsx rename to packages/gatekeeper/src/app/login/page.tsx index f050e76..9aac99c 100644 --- a/packages/gatekeeper/src/app/gatekeeper/login/page.tsx +++ b/packages/gatekeeper/src/app/login/page.tsx @@ -34,9 +34,7 @@ export default async function LoginPage({ searchParams }: LoginPageProps) { }); redirect(targetRedirect); } else { - redirect( - `/gatekeeper/login?error=1&redirect=${encodeURIComponent(targetRedirect)}`, - ); + redirect(`/login?error=1&redirect=${encodeURIComponent(targetRedirect)}`); } } @@ -57,7 +55,7 @@ export default async function LoginPage({ searchParams }: LoginPageProps) {
Mintel