From d0bcd297964d19a5931dea335715bf74415e9252 Mon Sep 17 00:00:00 2001 From: Lee Date: Sun, 20 Oct 2024 22:03:38 +0000 Subject: [PATCH 1/2] Delete projects/website/src/middleware.ts --- projects/website/src/middleware.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 projects/website/src/middleware.ts diff --git a/projects/website/src/middleware.ts b/projects/website/src/middleware.ts deleted file mode 100644 index 8e0a455..0000000 --- a/projects/website/src/middleware.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { type NextRequest, NextResponse } from "next/server"; -import { isProduction } from "@ssr/common/utils/utils"; - -export function middleware(request: NextRequest) { - const before = Date.now(); - const response = NextResponse.next(); - const ip = request.headers.get("CF-Connecting-IP") || request.headers.get("X-Forwarded-For"); - - // Log requests in production - if (isProduction()) { - console.log( - ` ${ip} | ${request.method} ${request.nextUrl.pathname} ${response.status} in ${(Date.now() - before).toFixed(0)}ms` - ); - } - - return response; -} - -export const config = { - matcher: [ - /* - * Match all request paths except for the ones starting with: - * - api (API routes) - * - _next/static (static files) - * - _next/image (image optimization files) - * - favicon.ico (favicon file) - */ - "/((?!api|_next/static|_next/image|favicon.ico).*)", - ], -}; From a15893ea5632383b62e0006e5a977651f1733d60 Mon Sep 17 00:00:00 2001 From: Lee Date: Sun, 20 Oct 2024 22:10:02 +0000 Subject: [PATCH 2/2] Update projects/website/src/components/player/player-scores.tsx --- projects/website/src/components/player/player-scores.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/website/src/components/player/player-scores.tsx b/projects/website/src/components/player/player-scores.tsx index 1a6c66a..8352936 100644 --- a/projects/website/src/components/player/player-scores.tsx +++ b/projects/website/src/components/player/player-scores.tsx @@ -221,7 +221,7 @@ export default function PlayerScores({ initialScoreData, initialSearch, player, className="grid min-w-full grid-cols-1 divide-y divide-border" > {scores.scores.map((score, index) => ( - + ))}