This commit is contained in:
parent
ec40f1b564
commit
886ed4b20c
9
projects/website/src/middleware.ts
Normal file
9
projects/website/src/middleware.ts
Normal file
@ -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}`);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user