ignore favicon.ico

This commit is contained in:
EGOIST
2022-06-01 01:41:05 +08:00
parent 8084981a29
commit 89277335a0
+4
View File
@@ -15,6 +15,10 @@ const ALWAYS_REPLAY_ROUTES = [
export default function middleware(req: NextRequest) {
const { pathname } = req.nextUrl
if (pathname === "/favicon.ico") {
return new Response(null, { status: 404 })
}
console.log(`${req.method} ${req.nextUrl.pathname}${req.nextUrl.search}`)
if (