feat: update middleware configuration to match pages while excluding API and static files

This commit is contained in:
Poyraz
2026-06-30 18:16:18 +03:00
parent eaac0f977e
commit 1d9d01ba7c
+2 -2
View File
@@ -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|.*\\..*).*)"],
};