fix: page error when for url with a dot

This commit is contained in:
DIYgod 2023-12-15 03:45:16 +08:00
parent 9cfa24c167
commit 17a98922ed
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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) {