From 17a98922edfed1afa36061eb8724c5422cff5c84 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 15 Dec 2023 03:45:16 +0800 Subject: [PATCH] fix: page error when for url with a dot --- src/middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middleware.ts b/src/middleware.ts index 1648f3280d..df8f5645f6 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -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) {