import createMiddleware from 'next-intl/middleware' import { routing } from './src/i18n/routing' export default createMiddleware({ ...routing, localeDetection: true, localeCookie: { name: 'NEXT_LOCALE', maxAge: 60 * 60 * 24 * 365, sameSite: 'lax', }, }) export const config = { matcher: ['/', '/(en|ro)/:path*', '/((?!api|_next|_vercel|.*\\..*).*)'], }