Updated middleware and next config
This commit is contained in:
9
src/middleware.ts
Normal file
9
src/middleware.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { NextRequest } from "next/server"
|
||||
|
||||
export async function middleware(req: NextRequest) {
|
||||
console.log(`[Middleware] ${req.method} ${req.nextUrl.pathname}`)
|
||||
}
|
||||
|
||||
export const config = {
|
||||
matcher: "/(.*)"
|
||||
}
|
||||
Reference in New Issue
Block a user