import createMiddleware from 'next-intl/middleware' import { defaultLocale, locales } from './i18n' export default createMiddleware({ locales, defaultLocale, localePrefix: 'always', }) export const config = { // Only match locale-prefixed routes. `/` is served by `app/page.tsx` // and should not be intercepted by the locale proxy. matcher: ['/(en)/:path*'], }