feat(web-i18n): add es/fr locales and expand switcher locale set
This commit is contained in:
14
apps/web/src/proxy.ts
Normal file
14
apps/web/src/proxy.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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|.*\\..*).*)"],
|
||||
}
|
||||
Reference in New Issue
Block a user