Add public DS-2 welcome page on root for unauthenticated visitors

Second-brain scheme (logo + six cards with rays) reworked from the old
platform's infographic. Root stays role-redirecting for signed-in users;
middleware opens "/" as an exact match only.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-06 09:32:49 +05:00
parent 1133557a62
commit fa7c25465c
5 changed files with 322 additions and 2 deletions
+3 -1
View File
@@ -14,9 +14,11 @@ export function middleware(request: NextRequest) {
}
if (
pathname === "/" || // public welcome page; "/" must stay an EXACT match (startsWith would open everything)
PUBLIC_ROUTES.some((route) => pathname.startsWith(route)) ||
pathname.startsWith("/_next") ||
pathname.startsWith("/favicon")
pathname.startsWith("/favicon") ||
pathname === "/logo.svg"
) {
return NextResponse.next();
}