15 lines
362 B
TypeScript
15 lines
362 B
TypeScript
import type { NextRequest } from "next/server"
|
|
import createMiddleware from "next-intl/middleware"
|
|
|
|
import { routing } from "@/i18n/routing"
|
|
|
|
const handleI18nRouting = createMiddleware(routing)
|
|
|
|
export function proxy(request: NextRequest) {
|
|
return handleI18nRouting(request)
|
|
}
|
|
|
|
export const config = {
|
|
matcher: ["/((?!api|trpc|_next|_vercel|.*\\..*).*)"],
|
|
}
|