diff --git a/app/[locale]/(site)/root/page.tsx b/app/[locale]/(site)/root/page.tsx deleted file mode 100644 index 705a5a4..0000000 --- a/app/[locale]/(site)/root/page.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { redirect } from "next/navigation"; - -export default function LocalizedRootRedirectPage() { - redirect("/root"); -} diff --git a/middleware.ts b/middleware.ts index 15fbc9d..06728cb 100644 --- a/middleware.ts +++ b/middleware.ts @@ -117,10 +117,7 @@ export default async function middleware(request: NextRequest) { const isSuperAdmin = await isSuperAdminSessionValid(request); const isRootBaseRoute = pathname === "/root" || pathname.startsWith("/root/"); - const isRootRoute = - isRootBaseRoute || - pathname === `/${locale}/root` || - pathname.startsWith(`/${locale}/root/`); + const isRootRoute = isRootBaseRoute; const isComingSoonRoute = pathname === "/coming-soon" || pathname.startsWith("/coming-soon/") ||