oops
All checks were successful
Deploy Website / deploy (push) Successful in 4m39s

This commit is contained in:
Lee 2024-10-10 02:34:48 +01:00
parent 19ab2a2e3d
commit 130016957d

@ -7,7 +7,7 @@ export function middleware(request: NextRequest) {
const connectingIp = request.headers.get("CF-Connecting-IP") || request.ip;
// Log requests in production
if (!isProduction()) {
if (isProduction()) {
console.log(
` ${request.method} ${request.nextUrl.pathname}${connectingIp != undefined ? ` ${connectingIp}` : ""} ${response.status} in ${(Date.now() - before).toFixed(0)}ms`
);