| 1 | import createMiddleware from "next-intl/middleware"; |
| 2 | import { routing } |
| 3 | |
| 4 | export default createMiddleware(routing |
| 5 | |
| 6 | export const config = |
| 7 | // Match all pathnames except for |
| 8 | // - … if they start with `/api`, `/trpc`, `/_next` or `/_vercel` |
| 9 | // - … the ones containing a dot (e.g. `favicon.ico`) |
| 10 | matcher: "/((?!api|trpc|_next|_vercel|.*\\..*).*)", |
| 11 | }; |