import createMiddleware from "next-intl/middleware";
import { routing } from "./lib/i18n/routing";

export default createMiddleware(routing);

export const config = {
  // Exclude admin panel and APIs — they live outside [locale] routes
  matcher: ["/((?!_next|_vercel|studio|api|admin|.*\\..*).*)"],
};
