From 8c422c80447df3160affca471fb76cc2a4fb9434 Mon Sep 17 00:00:00 2001 From: Softly Love Date: Tue, 31 Dec 2024 07:29:10 +0100 Subject: [PATCH] docs: fix 404 from public directory --- .../01-routing/15-internationalization.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/01-app/03-building-your-application/01-routing/15-internationalization.mdx b/docs/01-app/03-building-your-application/01-routing/15-internationalization.mdx index 1de099fa8af23..276c2cc5dc6e1 100644 --- a/docs/01-app/03-building-your-application/01-routing/15-internationalization.mdx +++ b/docs/01-app/03-building-your-application/01-routing/15-internationalization.mdx @@ -59,8 +59,8 @@ export function middleware(request) { export const config = { matcher: [ - // Skip all internal paths (_next) - '/((?!_next).*)', + // Only match paths that don't have file extensions and aren't _next + '/((?!api|_next|.*\\..*$).*)', // Optional: only run on root (/) URL // '/' ],