The middleware file convention is deprecated in this Next.js version in favor of proxy.
11 lines
222 B
TypeScript
11 lines
222 B
TypeScript
import createMiddleware from 'next-intl/middleware'
|
|
import { routing } from './i18n/routing'
|
|
|
|
export default createMiddleware(routing)
|
|
|
|
export const config = {
|
|
matcher: [
|
|
'/((?!api|_next|_vercel|.*\\..*).*)',
|
|
],
|
|
}
|