feat: update middleware configuration to match pages while excluding API and static files
This commit is contained in:
+2
-2
@@ -4,6 +4,6 @@ import {routing} from "./i18n/routing";
|
|||||||
export default createMiddleware(routing);
|
export default createMiddleware(routing);
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
// Match only internationalized pathnames
|
// Match pages, but skip API/internal/static files like `/tr/resume.pdf`.
|
||||||
matcher: ["/", "/(tr|en)/:path*", "/((?!_next|_vercel|.*\\..*).*)"]
|
matcher: ["/((?!api|trpc|_next|_vercel|.*\\..*).*)"],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user