simple logger
Some checks failed
Deploy Website / deploy (push) Has been cancelled

This commit is contained in:
Lee 2024-10-10 00:36:42 +01:00
parent ec40f1b564
commit 886ed4b20c

@ -0,0 +1,9 @@
import type { NextRequest } from "next/server";
import { isProduction } from "@ssr/common/utils/utils";
export function middleware(request: NextRequest) {
// Log requests in production
if (isProduction()) {
console.log(` ${request.method} ${request.url}`);
}
}