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) {