Skip to content

Commit

Permalink
fix: page error when for url with a dot
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Dec 14, 2023
1 parent 9cfa24c commit 17a9892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const HTTPWhitelistPaths = ["/api/healthcheck"]

export const config = {
// Skip all paths that should not be internationalized. This example skips the
// folders "api", "_next" and all files with an extension (e.g. favicon.ico)
matcher: ["/((?!api|_next|_vercel|.*\\..*).*)"],
// folders "api", "_next", "_vercel"
matcher: ["/((?!api|_next|_vercel).*)"],
}

export async function middleware(req: NextRequest) {
Expand Down

0 comments on commit 17a9892

Please sign in to comment.