Skip to content

Commit

Permalink
fix: Fix favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 29, 2023
1 parent 44f2746 commit e9b39b1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ export async function middleware(request: NextRequest) {

export const config = {
matcher: [
// Skip all internal paths (_next)
"/((?!_next).*)",
// Optional: only run on root (/) URL
// '/'
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon (favicon file)
*/
"/((?!api|_next/static|_next/image|favicon).*)",
],
};

Expand Down

1 comment on commit e9b39b1

@vercel
Copy link

@vercel vercel bot commented on e9b39b1 Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.