import createMiddleware from 'next-intl/middleware'; import { routing } from './src/i18n/routing'; export default createMiddleware(routing); export const config = { // Everything except /api (forwarded to the API by the rewrite), Next internals and // static files. Locale routing must not touch API requests. matcher: ['/((?!api|healthz|_next|_vercel|.*\\..*).*)'], };