Redesign marketing pages and isolate public routes from app auth.

Give the landing, legal, and sign-in flows a consistent product shell while keeping marketing pages free of tRPC/session calls, fixing dev auth URL handling, and refreshing env and deploy docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-26 02:00:06 -04:00
co-authored by Cursor
parent 82977b6dd8
commit 6ec26a4a0d
36 changed files with 1743 additions and 819 deletions
+2 -10
View File
@@ -1,6 +1,7 @@
import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";
import { envBoolean } from "~/lib/env-boolean";
import { isPublicRoute } from "~/lib/public-routes";
export function proxy(request: NextRequest) {
const { pathname } = request.nextUrl;
@@ -11,15 +12,6 @@ export function proxy(request: NextRequest) {
return NextResponse.redirect(signInUrl);
}
// Define public routes that don't require authentication
const publicRoutes = [
"/",
"/auth/signin",
"/auth/register",
"/privacy",
"/terms",
];
// Define API routes that should be handled separately
const apiRoutes = ["/api/auth", "/api/trpc", "/api/mcp", "/api/i"];
@@ -29,7 +21,7 @@ export function proxy(request: NextRequest) {
}
// Allow public routes for everyone
if (publicRoutes.includes(pathname)) {
if (isPublicRoute(pathname)) {
return NextResponse.next();
}