Trying to get a dokku build :)
This commit is contained in:
12
src/middleware.js
Normal file
12
src/middleware.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
|
||||
export function middleware(request) {
|
||||
const { method, nextUrl } = request
|
||||
|
||||
// Filter out internal Next.js assets if desired
|
||||
if (!nextUrl.pathname.startsWith('/_next')) {
|
||||
console.log(`${method} ${nextUrl.pathname}`)
|
||||
}
|
||||
|
||||
return NextResponse.next()
|
||||
}
|
||||
Reference in New Issue
Block a user