import createMiddleware from "next-intl/middleware";

import { routing } from "./i18n/routing";

export default createMiddleware(routing);

export const config = {
  // Match all routes except API, Next internals, and static assets.
  // Better Auth lives under /api/auth so it MUST stay untouched.
  matcher: ["/((?!api|trpc|_next|_vercel|.*\\..*).*)"],
};
