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