From 14d9284911e9d1717b650d4c0b866b6ac2bb7ab0 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:05:58 +0330 Subject: [PATCH] Import source: src/proxy Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- src/proxy.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/proxy.ts diff --git a/src/proxy.ts b/src/proxy.ts new file mode 100644 index 0000000..d77984f --- /dev/null +++ b/src/proxy.ts @@ -0,0 +1,11 @@ +import createMiddleware from 'next-intl/middleware'; +import {routing} from './i18n/routing'; + +export default createMiddleware(routing); + +export const config = { + // Match all pathnames except for + // - … if they start with `/api`, `/_next` or `/_vercel` + // - … the ones containing a dot (e.g. `favicon.ico`) + matcher: ['/', '/(fa|en)/:path*', '/((?!api|_next|_vercel|.*\\..*).*)'] +};