From 1d9d01ba7c137b80d7d5fb0ba42cc574976e338b Mon Sep 17 00:00:00 2001 From: Poyraz <78071274+poyrazavsever@users.noreply.github.com> Date: Tue, 30 Jun 2026 18:16:18 +0300 Subject: [PATCH] feat: update middleware configuration to match pages while excluding API and static files --- middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware.ts b/middleware.ts index 7a5bd15..c400a88 100644 --- a/middleware.ts +++ b/middleware.ts @@ -4,6 +4,6 @@ import {routing} from "./i18n/routing"; export default createMiddleware(routing); export const config = { - // Match only internationalized pathnames - matcher: ["/", "/(tr|en)/:path*", "/((?!_next|_vercel|.*\\..*).*)"] + // Match pages, but skip API/internal/static files like `/tr/resume.pdf`. + matcher: ["/((?!api|trpc|_next|_vercel|.*\\..*).*)"], };