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

export default createMiddleware(routing);

export const config = {
  // Match every path so un-prefixed URLs get redirected to the default locale (fa).
  // Exclude API routes, Next internals, the guest QR menu (/q), and static files.
  matcher: ["/((?!api|_next|_vercel|q|.*\\..*).*)"],
};
