new builds/id page

This commit is contained in:
2025-12-26 20:53:04 -05:00
parent c8bf032f7a
commit e202d811ed
6 changed files with 201 additions and 1 deletions
+4 -1
View File
@@ -18,6 +18,9 @@ const PUBLIC_FILE =
export function middleware(req: NextRequest) {
const { pathname } = req.nextUrl;
console.log("LAUNCH_ONLY_ROOT:", process.env.NEXT_PUBLIC_LAUNCH_ONLY_ROOT);
// =========================
// 1) Admin gate (always on)
// =========================
@@ -55,10 +58,10 @@ if (pathname.startsWith("/admin")) {
if (ALWAYS_ALLOW.has(pathname)) return NextResponse.next();
return NextResponse.rewrite(new URL("/404", req.url));
}
` 1`
export const config = {
matcher: [