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|.*\\..*).*)'] +};