10 lines
285 B
TypeScript
10 lines
285 B
TypeScript
import createMiddleware from 'next-intl/middleware';
|
|
import { routing } from './i18n/routing';
|
|
|
|
export default createMiddleware(routing);
|
|
|
|
export const config = {
|
|
// Match all paths except next internals, api, and static assets.
|
|
matcher: ['/((?!api|_next|_vercel|.*\\..*).*)'],
|
|
};
|